/* =========================================================
   AUTH.CSS — DARK GLASS UI
   System: AVM Ticket System
   Features:
   - Dark Theme
   - Glassmorphism
   - OTP Modal Animation
   - Remember Me UI
   Rules:
   - Header/Footer untouched
   - No body/html override
========================================================= */


/* =========================================================
   AUTH PAGE WRAPPER
========================================================= */
.auth-container {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;

    background:
        radial-gradient(circle at top left, #1e293b 0%, transparent 45%),
        radial-gradient(circle at bottom right, #020617 0%, #020617 65%);
}


/* =========================================================
   AUTH CARD (GLASS)
========================================================= */
.auth-card {
    width: 100%;
    max-width: 420px;

    padding: 36px 34px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);

    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);

    animation: authFadeUp 0.6s ease both;
}


/* =========================================================
   TITLES
========================================================= */
.auth-card h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: #c7d2fe;
    margin-bottom: 24px;
}


/* =========================================================
   FLASH MESSAGE
========================================================= */
.flash-message {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}


/* =========================================================
   FORM LABELS
========================================================= */
.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}


/* =========================================================
   INPUT FIELDS
========================================================= */
.auth-card input {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 18px;

    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    font-size: 14px;
}

.auth-card input::placeholder {
    color: #cbd5e1;
}

.auth-card input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
    color: #e5e7eb;
}


/* =========================================================
   REMEMBER ME
========================================================= */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.remember-me input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.remember-me label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */
.auth-card button {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(90deg, #3b82f6, #6366f1);
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 0 30px rgba(99, 102, 241, 0.55);
}

.auth-card button:hover {
    filter: brightness(1.1);
}

.auth-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================================
   LINKS
========================================================= */
.auth-links {
    margin-top: 18px;
    text-align: center;
}

.auth-links a {
    font-size: 13px;
    color: #93c5fd;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   OTP OVERLAY
========================================================= */
.otp-overlay {
    position: fixed;
    inset: 0;

    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}


/* =========================================================
   OTP MODAL (ANIMATED)
========================================================= */
.otp-modal {
    width: 100%;
    max-width: 380px;

    padding: 32px 26px;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px);

    color: #ffffff;
    text-align: center;

    animation: otpPop 0.45s ease both;
}

.otp-modal h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.otp-modal input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 14px;
}


/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes otpPop {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 24px;
    }

    .auth-card h2 {
        font-size: 23px;
    }
}
