/* Modern Neon Auth CSS */
:root {
    --primary-color: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    /* Base gradient fallback */
    background-image:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
}

/* ... existing styles ... */

.auth-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.4));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

body.login-page {
    background-image:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.2) 0px, transparent 50%),
        url('../img/login-bg.png');
}

body.register-page {
    background-image:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.2) 0px, transparent 50%),
        url('../img/register-club-bg.png');
}

/* SSL Badge */
.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ssl-badge i {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Emoji Fix for Gradient Text */
.emoji-fix {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-fill-color: initial !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    filter: none;
    /* Remove drop shadow from emoji if needed, or keep it */
    display: inline-block;
}

/* Glassmorphism Container */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
    width: 100%;
    /* Ensure full width */
}

.input-icon {
    position: absolute;
    left: 15px;
    /* Fixed left position */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 2;
    /* Ensure icon is above input */
    pointer-events: none;
    /* Prevent clicking icon */
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Uniform padding, space for icon */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    /* Critical for correct width */
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}

.form-input:focus+.input-icon {
    color: var(--primary-color);
}

.form-input::placeholder {
    color: #64748b;
}

/* Button */
.btn-neon {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.btn-neon:active {
    transform: translateY(0);
}

/* Links */
.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .auth-container {
        padding: 2rem;
        margin: 1rem;
    }
}