/* ========================================
   LOGIN PAGE STYLES (Premium Design)
   ======================================== */

.login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #fef8ff 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(37,99,235,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="white" opacity="0.5"/><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, cover, 100px 100px;
    background-attachment: fixed;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 20px;
    padding: 48px 32px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: slideInUp 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    font-family: 'Orbitron', sans-serif;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(37, 99, 235, 0.02);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: rgba(15, 23, 42, 0.4);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 8px;
}

.remember-forgot a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.remember-forgot a:hover {
    color: var(--accent);
}

.remember-forgot label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.remember-forgot input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.btn-login {
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1e4fd6, #0891b2);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(37, 99, 235, 0.1);
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.02);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.login-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--accent);
}

/* Language selector in login */
.login-lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-selector-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.lang-selector-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-selector-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-selector-menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-selector-menu a:hover,
.lang-selector-menu a.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

/* Register page */
.register-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-box {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 48px 32px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: slideInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box,
    .register-box {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .login-logo {
        font-size: 1.8rem;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-lang-selector {
        top: 16px;
        right: 16px;
    }
    
    .lang-selector-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-box,
    .register-box {
        padding: 24px 16px;
    }
    
    .login-header {
        margin-bottom: 32px;
    }
    
    .login-logo {
        font-size: 1.6rem;
    }
    
    .login-title {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}
