:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C1E9;
    --background-color: #f8f9fa;
    --card-background: rgba(255, 255, 255, 0.9);
    --text-color: #333333;
    --text-secondary: #666666;
    --border-radius: 20px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Mi Sans', 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f7 100%);
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.button-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

.main-btn {
    background: var(--card-background);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    padding: 20px 40px;
    font-size: 1.1em;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.main-btn:hover, .main-btn:focus {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.main-btn:active {
    transform: translateY(0) scale(0.98);
}

.main-btn i {
    font-size: 1.4em;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.version {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
    opacity: 0.7;
    z-index: 2;
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.1;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    body {
        background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f7 100%);
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .main-btn {
        width: 100%;
        padding: 16px 24px;
    }

    .version {
        bottom: 10px;
        right: 10px;
        font-size: 0.8em;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-background);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9em;
    transition: var(--transition);
    z-index: 3;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (max-width: 600px) {
    .logout-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

.back-btn {
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#currentBank {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 10px;
}