/* ===================================
   Glass MLM - Authentication Styles
   Glassmorphism Dark Theme
   ================================== */

:root {
    --bg-black: #0f0c29;
    --bg-dark: #1a1635;
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-medium: rgba(255, 255, 255, 0.12);
    --neon-gold: #ff006e;
    --gold-glow: rgba(255, 0, 110, 0.4);
    --text-white: #E5E7EB;
    --gradient-gold: linear-gradient(135deg, #ff006e 0%, #d946ef 100%);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black);
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(217, 70, 239, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 0, 110, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: floatGlass 25s infinite ease-in-out;
    filter: blur(60px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(217, 70, 239, 0.1);
    top: -250px;
    left: -250px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 0, 110, 0.1);
    bottom: -200px;
    right: -200px;
    animation-delay: 8s;
}

@keyframes floatGlass {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 150px) scale(1.1); }
    66% { transform: translate(-80px, 80px) scale(0.9); }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 20px;
}

.auth-card {
    background: rgba(26, 22, 53, 0.7);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 25px;
    padding: 50px 45px;
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.6s ease-out;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 25px 25px 0 0;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    animation: pulseGlow 2s infinite;
    box-shadow: 0 0 30px var(--gold-glow);
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px var(--gold-glow);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 50px var(--gold-glow);
    }
}

.auth-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 17px;
    color: rgba(229, 231, 235, 0.7);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-white);
    font-size: 17px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 17px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: rgba(229, 231, 235, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-gold);
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1), 0 0 20px var(--gold-glow);
    background: rgba(255, 255, 255, 0.08);
}

.form-control:focus + .input-icon {
    color: var(--neon-gold);
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(229, 231, 235, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--neon-gold);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--neon-gold);
}

.remember-me label {
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-white);
}

.forgot-link {
    color: var(--neon-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    text-shadow: 0 0 10px var(--gold-glow);
}

.btn-auth {
    width: 100%;
    padding: 18px;
    background: var(--gradient-gold);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--gold-glow);
    position: relative;
    overflow: hidden;
}

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

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

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--gold-glow);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    background: rgba(26, 22, 53, 0.9);
    padding: 0 15px;
    color: rgba(229, 231, 235, 0.7);
    font-size: 16px;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-white);
}

.social-btn i {
    font-size: 22px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.2);
    border-color: var(--neon-gold);
    background: rgba(255, 255, 255, 0.08);
}

.auth-footer {
    text-align: center;
    font-size: 17px;
}

.auth-footer p {
    color: rgba(229, 231, 235, 0.7);
    margin-bottom: 10px;
}

.auth-footer a {
    color: var(--neon-gold);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-shadow: 0 0 10px var(--gold-glow);
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .auth-card {
        padding: 40px 30px;
    }
    
    .logo {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .form-control {
        font-size: 18px;
    }
    
    .btn-auth {
        font-size: 19px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 19px;
    }
    
    .auth-card {
        padding: 35px 25px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .form-control {
        font-size: 19px;
        padding: 20px 20px 20px 55px;
    }
    
    .btn-auth {
        font-size: 20px;
        padding: 22px;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
