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

html, body {
    overflow-x: hidden;
}

:root {
    --lions-blue: #0076B6;
    --lions-blue-light: #00a0f0;
    --lions-blue-dark: #004d80;
    --lions-silver: #B0B7BC;
    --lions-silver-light: #d4d9dd;
    --lions-silver-dark: #8a9299;
}

/* ========================================
   SPACE BACKGROUND
   ======================================== */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Nebula / Milky Way hint - subtle color glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        /* Subtle purple/blue nebula hint in upper right */
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(60, 40, 90, 0.15) 0%, transparent 60%),
        /* Faint warm glow near center */
        radial-gradient(ellipse 50% 50% at 30% 60%, rgba(40, 30, 60, 0.1) 0%, transparent 50%),
        /* Very subtle milky way band */
        linear-gradient(135deg, transparent 0%, rgba(50, 50, 80, 0.05) 30%, rgba(60, 50, 90, 0.08) 50%, rgba(50, 50, 80, 0.05) 70%, transparent 100%);
}

/* Star field - bright foreground stars (closer) */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Brightest stars - largest, with slight color variation */
        radial-gradient(3px 3px at 50px 80px, #fff, transparent),
        radial-gradient(3px 3px at 200px 150px, rgba(255, 250, 240, 1), transparent),
        radial-gradient(3.5px 3.5px at 400px 60px, #fff, transparent),
        radial-gradient(3px 3px at 600px 200px, rgba(240, 248, 255, 1), transparent),
        radial-gradient(3px 3px at 750px 100px, #fff, transparent),
        radial-gradient(3.5px 3.5px at 150px 300px, rgba(255, 255, 250, 1), transparent),
        radial-gradient(3px 3px at 500px 350px, #fff, transparent),
        /* Medium bright stars */
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 100px 120px, rgba(255,255,255,0.95), transparent),
        radial-gradient(2px 2px at 180px 40px, #fff, transparent),
        radial-gradient(2px 2px at 280px 200px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 350px 130px, #fff, transparent),
        radial-gradient(2px 2px at 450px 250px, rgba(255,255,255,0.95), transparent),
        radial-gradient(2px 2px at 550px 80px, #fff, transparent),
        radial-gradient(2px 2px at 650px 300px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 720px 180px, #fff, transparent),
        radial-gradient(2px 2px at 800px 50px, rgba(255,255,255,0.95), transparent),
        radial-gradient(2px 2px at 80px 250px, #fff, transparent),
        radial-gradient(2px 2px at 320px 320px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 580px 380px, #fff, transparent);
    background-size: 900px 450px;
    background-repeat: repeat;
}

/* Medium distance stars - smaller and slightly dimmer */
.stars-small {
    background-image:
        radial-gradient(1.5px 1.5px at 35px 55px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 95px 180px, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.5px 1.5px at 160px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 230px 260px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 300px 45px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 380px 190px, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.5px 1.5px at 440px 110px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 520px 280px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 590px 160px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 670px 70px, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.5px 1.5px at 740px 240px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 810px 130px, rgba(255,255,255,0.7), transparent),
        /* Distant faint stars - tiny */
        radial-gradient(1px 1px at 55px 130px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 120px 220px, rgba(255,255,255,0.45), transparent),
        radial-gradient(1px 1px at 190px 170px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 260px 100px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 340px 280px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 410px 60px, rgba(255,255,255,0.45), transparent),
        radial-gradient(1px 1px at 480px 200px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 560px 30px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 630px 250px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 700px 150px, rgba(255,255,255,0.45), transparent),
        radial-gradient(1px 1px at 770px 310px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 840px 90px, rgba(255,255,255,0.4), transparent);
    background-size: 900px 380px;
}

/* Twinkling animation layer - random bright stars that pulse */
.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2.5px 2.5px at 120px 80px, #fff, transparent),
        radial-gradient(2px 2px at 280px 220px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 450px 40px, #fff, transparent),
        radial-gradient(2px 2px at 620px 280px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 180px 340px, #fff, transparent),
        radial-gradient(2px 2px at 550px 160px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 380px 380px, #fff, transparent),
        radial-gradient(2px 2px at 700px 120px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 80px 200px, #fff, transparent),
        radial-gradient(2px 2px at 500px 300px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 750px 60px, #fff, transparent),
        radial-gradient(2px 2px at 320px 140px, #fff, transparent);
    background-size: 900px 450px;
    background-repeat: repeat;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   EARTH - Photorealistic NASA Style
   ======================================== */
.earth {
    position: fixed;
    bottom: -180px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    z-index: 0;
    /* NASA Blue Marble image */
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/The_Blue_Marble_%28remastered%29.jpg/600px-The_Blue_Marble_%28remastered%29.jpg') center center / cover no-repeat;
    /* Subtle rotation animation */
    animation: earthRotate 120s linear infinite;
}

/* Earth atmosphere element - hidden */
.earth-atmosphere {
    display: none;
}

@keyframes earthRotate {
    from {
        background-position: 0% center;
    }
    to {
        background-position: 200% center;
    }
}

/* ========================================
   MOON - Photorealistic with Craters
   ======================================== */
.moon {
    position: fixed;
    top: 15%;
    right: 10%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    z-index: 0;
    /* NASA Moon image */
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/FullMoon2010.jpg/600px-FullMoon2010.jpg') center center / cover no-repeat;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

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

/* ========================================
   TITLE - Clean Premium Style
   ======================================== */
header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 4px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 50px rgba(200, 220, 255, 0.2);
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 300;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   TIMER SECTION
   ======================================== */
.timer-section {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 50px 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.timer-display {
    font-size: 4.5rem;
    font-weight: 300;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 4px;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::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 ease;
}

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

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn:disabled::before {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lions-blue) 0%, var(--lions-blue-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 118, 182, 0.5);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 6px 25px rgba(0, 118, 182, 0.7),
        0 0 30px rgba(0, 118, 182, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--lions-silver-dark) 0%, var(--lions-silver) 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(176, 183, 188, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 6px 25px rgba(176, 183, 188, 0.5),
        0 0 30px rgba(176, 183, 188, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 6px 25px rgba(220, 20, 60, 0.5),
        0 0 30px rgba(220, 20, 60, 0.3);
}

/* ========================================
   MILESTONE SECTIONS
   ======================================== */
.milestone-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.milestone-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.milestone-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.milestone-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.milestone-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.milestone-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.milestone-form input:focus {
    border-color: var(--lions-blue-light);
    box-shadow: 0 0 20px rgba(0, 118, 182, 0.4);
}

.milestones-list-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.milestones-list-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.milestones-list::-webkit-scrollbar {
    width: 6px;
}

.milestones-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.milestones-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.milestones-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.empty-state {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 30px;
    font-style: italic;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.milestone-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.milestone-time {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.milestone-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    word-break: break-word;
}

.milestone-delete {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.milestone-delete:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.2) rotate(90deg);
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        135deg,
        rgba(0, 20, 40, 0.95) 0%,
        rgba(0, 60, 100, 0.9) 100%
    );
    border: 2px solid var(--lions-blue);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow:
        0 0 30px rgba(0, 118, 182, 0.5),
        0 0 60px rgba(0, 118, 182, 0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(
        90deg,
        var(--lions-blue-dark) 0%,
        var(--lions-blue) 50%,
        var(--lions-blue-dark) 100%
    );
    padding: 20px 25px;
    border-bottom: 1px solid rgba(176, 183, 188, 0.2);
}

.modal-header h3 {
    margin: 0;
    color: var(--lions-silver-light);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: var(--lions-silver);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.modal-body input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(0, 118, 182, 0.5);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
}

.modal-body input::placeholder {
    color: var(--lions-silver-dark);
    letter-spacing: 1px;
}

.modal-body input:focus {
    border-color: var(--lions-blue-light);
    box-shadow: 0 0 20px rgba(0, 118, 182, 0.4);
}

.modal-body input.error {
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.password-error {
    color: #ff4757 !important;
    font-size: 0.9rem;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    min-height: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 25px 25px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 150px;
}

.modal-field {
    margin-bottom: 15px;
}

.modal-field:last-of-type {
    margin-bottom: 0;
}

.modal-field.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.security-question-display {
    background: rgba(0, 118, 182, 0.2);
    border: 1px solid var(--lions-blue);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--lions-silver-light);
    font-style: italic;
    text-align: center;
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--lions-blue-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--lions-silver-light);
}

/* ========================================
   FIREWORKS
   ======================================== */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.firework-rocket {
    position: absolute;
    width: 4px;
    height: 12px;
    border-radius: 50% 50% 0 0;
    will-change: transform, opacity;
}

.firework-spark {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

.firework-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform, opacity;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .earth {
        width: 300px;
        height: 300px;
        bottom: -140px;
        left: -80px;
    }

    .moon {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 8%;
    }
}

@media (max-width: 480px) {
    .timer-display {
        font-size: 2.8rem;
    }

    header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .container {
        padding: 20px 16px;
    }

    .timer-section,
    .milestone-section,
    .milestones-list-section {
        padding: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .earth {
        width: 220px;
        height: 220px;
        bottom: -100px;
        left: -60px;
    }

    .moon {
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   AUTHENTICATION PAGE
   ======================================== */
.auth-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.auth-form h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
}

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

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    border-color: var(--lions-blue-light);
    box-shadow: 0 0 20px rgba(0, 118, 182, 0.3);
}

/* Password toggle */
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.8);
}

.toggle-password:focus {
    outline: none;
    color: var(--lions-blue-light);
}

.toggle-password svg.hidden {
    display: none;
}

/* Select dropdown styling */
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    border-color: var(--lions-blue-light);
    box-shadow: 0 0 20px rgba(0, 118, 182, 0.3);
    outline: none;
}

.form-group select option {
    background: #1a1a2e;
    color: #fff;
}

/* Security question display */
.security-question {
    background: rgba(0, 118, 182, 0.15);
    border: 1px solid rgba(0, 118, 182, 0.3);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Forgot password link */
.auth-forgot {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.auth-forgot a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot a:hover {
    color: var(--lions-blue-light);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.auth-success {
    color: #2ed573;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 15px;
}

.auth-success.hidden {
    display: none;
}

.auth-error {
    color: #ff4757;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 15px;
    min-height: 20px;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--lions-blue-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #fff;
}

/* ========================================
   HEADER TOP BAR
   ======================================== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Lock and Logout Buttons */
.btn-lock,
.btn-unlock,
.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-lock {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-lock:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-unlock {
    background: rgba(0, 118, 182, 0.3);
    color: var(--lions-blue-light);
    border: 1px solid var(--lions-blue);
}

.btn-unlock:hover {
    background: rgba(0, 118, 182, 0.5);
}

.btn-logout {
    background: rgba(139, 0, 0, 0.3);
    color: rgba(255, 100, 100, 0.9);
    border: 1px solid rgba(220, 20, 60, 0.4);
}

.btn-logout:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: rgba(220, 20, 60, 0.6);
}

.lock-icon {
    flex-shrink: 0;
}

/* Lock Status Indicator */
.lock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 118, 182, 0.2);
    border: 1px solid var(--lions-blue);
    border-radius: 20px;
    color: var(--lions-blue-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 118, 182, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 118, 182, 0.5);
    }
}

/* PIN Modal Specific */
.pin-modal .modal-body {
    text-align: center;
}

.pin-input-container {
    margin: 20px 0;
}

.pin-input-container input {
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Lock Warning Modal */
.lock-warning-modal .warning-header {
    background: linear-gradient(
        90deg,
        rgba(139, 0, 0, 0.8) 0%,
        rgba(220, 20, 60, 0.8) 50%,
        rgba(139, 0, 0, 0.8) 100%
    );
}

.lock-warning-icon {
    text-align: center;
    margin-bottom: 15px;
    color: var(--lions-blue-light);
}

/* ========================================
   RESPONSIVE - Auth & Header
   ======================================== */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .header-top {
        flex-direction: column;
        gap: 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .user-email {
        max-width: 200px;
    }

    .lock-text,
    .logout-text {
        display: none;
    }

    .btn-lock,
    .btn-unlock,
    .btn-logout {
        padding: 10px;
    }
}
