/* ========================
   BLAST MANAGEMENT — AUTH PAGES
   ======================== */

:root {
    --auth-bg: #1a0a0a;
    --auth-red: #cc2929;
    --auth-red-hover: #e63333;
    --auth-red-dark: #8b1a1a;
    --auth-gold: #d4a017;
    --auth-gold-light: #f0c040;
    --auth-text: #ffffff;
    --auth-text-sub: rgba(255, 255, 255, 0.7);
    --auth-text-muted: rgba(255, 255, 255, 0.4);
    --auth-border: rgba(255, 255, 255, 0.15);
    --auth-border-focus: rgba(255, 255, 255, 0.35);
    --auth-input-bg: rgba(255, 255, 255, 0.03);
    --auth-font: 'Plus Jakarta Sans', sans-serif;
    --auth-font-body: 'Inter', sans-serif;
    --auth-radius: 8px;
    --auth-transition: all 0.3s ease;
}

/* ======================== RESET ======================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--auth-font-body);
    color: var(--auth-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
}

/* ======================== AUTH WRAPPER ======================== */

.auth-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ======================== FORM SIDE ======================== */

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    max-width: 540px;
}

/* ======================== LOGO SIDE ======================== */

.auth-logo-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo {
    width: 380px;
    max-width: 100%;
    opacity: 0.85;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 60px rgba(0, 0, 0, 0.4));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ======================== PAGE HEADER ======================== */

.auth-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.auth-title {
    font-family: var(--auth-font);
    font-size: 2rem;
    font-weight: 900;
    color: var(--auth-text);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--auth-text-sub);
    margin-bottom: 40px;
    font-weight: 400;
}

/* ======================== ALERTS ======================== */

.alert {
    padding: 14px 18px;
    border-radius: var(--auth-radius);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: fadeInUp 0.4s ease both;
}

.alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* ======================== FORM ======================== */

.auth-form { width: 100%; }

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: var(--auth-input-bg);
    transition: var(--auth-transition);
}

.input-wrapper:focus-within {
    border-color: var(--auth-border-focus);
    background: rgba(255, 255, 255, 0.05);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--auth-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--auth-transition);
}

.input-wrapper:focus-within .input-icon {
    color: var(--auth-text-sub);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 0.9rem;
    color: var(--auth-text);
    background: transparent;
    border: none;
    border-radius: var(--auth-radius);
}

.form-input::placeholder {
    color: var(--auth-text-muted);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(26, 10, 10, 0.95) inset;
    -webkit-text-fill-color: var(--auth-text);
    caret-color: var(--auth-text);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--auth-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--auth-transition);
}

.toggle-password:hover {
    color: var(--auth-text-sub);
}

/* ======================== REMEMBER & FORGOT ======================== */

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text);
}

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

.forgot-link {
    font-size: 0.85rem;
    color: var(--auth-text-sub);
    transition: var(--auth-transition);
}

.forgot-link:hover {
    color: var(--auth-text);
}

/* ======================== SUBMIT BUTTON ======================== */

.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--auth-red);
    color: var(--auth-text);
    font-family: var(--auth-font);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--auth-radius);
    cursor: pointer;
    transition: var(--auth-transition);
    margin-bottom: 24px;
}

.btn-auth:hover {
    background: var(--auth-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

/* ======================== AUTH FOOTER LINK ======================== */

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-text-sub);
}

.auth-footer a {
    color: var(--auth-gold);
    font-weight: 600;
    transition: var(--auth-transition);
}

.auth-footer a:hover {
    color: var(--auth-gold-light);
    text-decoration: underline;
}

/* ======================== OTP INPUTS ======================== */

.otp-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.otp-input {
    width: 64px;
    height: 64px;
    text-align: center;
    font-family: var(--auth-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--auth-gold);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    transition: var(--auth-transition);
}

.otp-input:focus {
    border-color: var(--auth-gold);
    background: rgba(212, 160, 23, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.otp-input::placeholder {
    color: var(--auth-text-muted);
}

/* ======================== TIMER & RESEND ======================== */

.otp-info {
    text-align: center;
    margin-bottom: 28px;
}

.otp-timer {
    font-size: 0.85rem;
    color: var(--auth-text-sub);
    margin-bottom: 8px;
}

.otp-timer strong {
    color: var(--auth-text);
    font-weight: 700;
}

.otp-resend {
    font-size: 0.85rem;
    color: var(--auth-text-sub);
}

.otp-resend a {
    color: var(--auth-gold);
    font-weight: 600;
    transition: var(--auth-transition);
}

.otp-resend a:hover {
    color: var(--auth-gold-light);
    text-decoration: underline;
}

/* ======================== BACK LINK ======================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--auth-text-sub);
    margin-top: 16px;
    transition: var(--auth-transition);
}

.back-link:hover {
    color: var(--auth-text);
}

/* ======================== ANIMATIONS ======================== */

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

.animate-in {
    animation: fadeInUp 0.5s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ======================== RESPONSIVE — TABLET ======================== */

@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        align-items: center;
        padding: 40px 5%;
    }

    .auth-form-side {
        max-width: 100%;
        width: 100%;
        order: 2;
        padding: 0;
    }

    .auth-logo-side {
        order: 1;
        margin-bottom: 32px;
    }

    .auth-logo {
        width: 200px;
    }
}

/* ======================== RESPONSIVE — MOBILE ======================== */

@media (max-width: 768px) {
    .auth-container {
        padding: 32px 6%;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .auth-subtitle {
        font-size: 0.88rem;
        margin-bottom: 28px;
    }

    .auth-logo {
        width: 160px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-input {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 24px 5%;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: 0.82rem;
        margin-bottom: 24px;
    }

    .auth-logo {
        width: 130px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .otp-container {
        gap: 6px;
        justify-content: center;
    }

    .otp-input {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .btn-auth {
        padding: 14px;
        font-size: 0.9rem;
    }
}
