/* Auth Styles for T-Rex Runner - Visually Distinct Themes using Lucide Icons */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Open+Sans:wght@400;600&display=swap');

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

body {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background animation */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -2;
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   THEME 1: LOGIN PAGE (Sleek Neon Cyber Blue)
   ========================================== */
body.theme-login {
    background-color: #030712;
}

body.theme-login::before {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

.auth-card.login-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
                0 0 20px 0 rgba(14, 165, 233, 0.1);
}

.theme-login h1 {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.theme-login .btn-submit {
    background: linear-gradient(135deg, #0284c7, #4f46e5);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.theme-login .btn-submit:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.theme-login .input-wrapper i {
    color: #38bdf8;
}

.theme-login .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* ==========================================
   THEME 2: REGISTER PAGE (Sunset Warm Amber/Pink)
   ========================================== */
body.theme-register {
    background-color: #0f050b;
}

body.theme-register::before {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 60%);
}

.auth-card.register-card {
    background: rgba(24, 15, 20, 0.75);
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
                0 0 25px 0 rgba(236, 72, 153, 0.1);
}

.theme-register h1 {
    background: linear-gradient(to right, #f43f5e, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.theme-register .btn-submit {
    background: linear-gradient(135deg, #e11d48, #ea580c);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.theme-register .btn-submit:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
}

.theme-register .input-wrapper i {
    color: #f43f5e;
}

.theme-register .form-control:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

/* ==========================================
   COMMON COMPONENT STYLES
   ========================================== */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10;
    transition: all 0.4s ease;
    animation: fadeInCard 0.6s ease;
}

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

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

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
}

.auth-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: opacity 0.2s ease;
}

.auth-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #a7f3d0;
}
