/* Modern Beautiful Design для страницы авторизации */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(99, 102, 241, 0.3);
    --text-main: #ffffff;
    --text-light: #cbd5e1;
    --bg-white: rgba(255, 255, 255, 0.1);
    --bg-light: rgba(15, 23, 42, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 20s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    top: 60%;
    right: 10%;
    animation-delay: 10s;
    opacity: 0.3;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    margin-top: 10px;
    margin-bottom: 10px;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Glassmorphism Auth Card */
.auth-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    padding: 35px 30px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 95vh;
    overflow-y: auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.auth-card:hover::before {
    opacity: 1;
}

.auth-card:hover {
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

.logo-section {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 10px 40px rgba(99, 102, 241, 0.3),
            0 0 20px rgba(236, 72, 153, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 15px 50px rgba(99, 102, 241, 0.5),
            0 0 30px rgba(236, 72, 153, 0.4);
    }
}

.logo i {
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo:hover i {
    transform: translateY(-3px) scale(1.1);
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: gradientShift 3s ease infinite;
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3),
        0 0 30px rgba(236, 72, 153, 0.2);
    text-rendering: optimizeLegibility;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    opacity: 0.9;
    text-rendering: optimizeLegibility;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 11px 18px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tab-btn:hover::before {
    width: 200px;
    height: 200px;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--text-primary);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.tab-btn:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.auth-form {
    display: none;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-form.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

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

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    text-rendering: optimizeLegibility;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-align: left;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-input:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--primary);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 4px 12px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.toggle-password:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.form-group-checkbox {
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-group-checkbox:hover {
    background: rgba(15, 23, 42, 0.4);
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    margin-right: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
}

.checkbox-input:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    text-rendering: optimizeLegibility;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:active::after {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.forgot-link {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.forgot-link a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.forgot-link a:hover::after {
    width: 100%;
}

.forgot-link a:hover {
    color: var(--primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 12px 0 10px;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
}

.social-auth-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 0;
}

.telegram-login-container {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

.google-login-btn,
.yandex-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.google-login-btn::before,
.yandex-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.google-login-btn:hover::before,
.yandex-login-btn:hover::before {
    width: 200px;
    height: 200px;
}

.google-login-btn {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.google-login-btn:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(66, 133, 244, 0.3),
        0 0 0 1px rgba(66, 133, 244, 0.3);
    border-color: rgba(66, 133, 244, 0.4);
}

.google-login-btn svg {
    transition: transform 0.3s ease;
}

.google-login-btn:hover svg {
    transform: scale(1.1);
}

.yandex-login-btn {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    color: #ffcc00;
    border-color: rgba(255, 204, 0, 0.3);
}

.yandex-login-btn:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(255, 204, 0, 0.4),
        0 0 0 1px rgba(255, 204, 0, 0.3);
    border-color: rgba(255, 204, 0, 0.5);
}

.yandex-login-btn svg {
    transition: transform 0.3s ease;
}

.yandex-login-btn:hover svg {
    transform: scale(1.1);
}

.password-strength-bar {
    width: 100%;
    height: 3px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.password-strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px currentColor;
}

.password-strength-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.password-strength-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.password-strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.password-strength-text {
    font-size: 0.7rem;
    margin-top: 3px;
    font-weight: 600;
    text-rendering: optimizeLegibility;
}

.password-strength-text.weak {
    color: #ef4444;
}

.password-strength-text.medium {
    color: #f59e0b;
}

.password-strength-text.strong {
    color: #10b981;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.auth-footer p {
    margin: 0 0 8px 0;
    text-align: center;
    text-rendering: optimizeLegibility;
}

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: inline-block;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-footer a:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

/* Кастомные скроллбары */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
}

p {
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

/* Плавные переходы для всех интерактивных элементов */
a, button, .form-input, .tab-btn, .submit-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Стили для переключателя языков */
.language-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.language-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-btn:hover i {
    transform: translateY(2px);
}

/* Модальное окно выбора языка */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.language-modal-content {
    background: linear-gradient(135deg, #1a1b2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.language-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(99, 102, 241, 0.1);
}

.language-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.language-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.language-modal-body {
    padding: 20px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
}

.language-option:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.language-option:last-child {
    margin-bottom: 0;
}

.language-flag {
    font-size: 2rem;
    line-height: 1;
}

.language-info {
    flex: 1;
}

.language-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.language-code {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.language-check {
    color: #10b981;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 35px 25px;
    }
    
    .language-switcher {
        top: 15px !important;
        right: 15px !important;
    }

    .language-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .logo {
        width: 65px;
        height: 65px;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.6rem;
    }
}
