/* ══════════════════════════════════════ */
/*  Auth Design System (Bootstrap 5)    */
/*  Only custom styles not in Bootstrap */
/* ══════════════════════════════════════ */

:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-900: #0c4a6e;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --emerald-50: #ecfdf5;
    --emerald-200: #a7f3d0;
    --emerald-700: #047857;
    --rose-50: #fff1f2;
    --rose-200: #fecdd3;
    --rose-700: #be123c;
    --cyan-300: #67e8f9;
    --amber-300: #fcd34d;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--slate-900);
}

/* ══════════════════════════════════════ */
/*  Auth Card — Glassmorphism            */
/* ══════════════════════════════════════ */

.auth-card {
    width: 100%;
    max-width: 72rem;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 90px rgba(15, 23, 42, 0.12);
}

@media (min-width: 1200px) {
    .auth-card {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ══════════════════════════════════════ */
/*  Left Panel — Dark Gradient           */
/* ══════════════════════════════════════ */

.auth-panel-left {
    display: none;
    position: relative;
    overflow: hidden;
    background: var(--slate-950);
    color: #fff;
    padding: 3rem 2.5rem;
}

@media (min-width: 1200px) {
    .auth-panel-left {
        display: block;
    }
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 30%),
}

.panel-left-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ══════════════════════════════════════ */
/*  Brand                                */
/* ══════════════════════════════════════ */

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.brand-link:hover {
    color: #fff;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* ══════════════════════════════════════ */
/*  Hero Section                         */
/* ══════════════════════════════════════ */

.hero-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(103, 232, 249, 0.8);
}

.hero-title {
    margin-top: 1rem;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-desc {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

.info-card {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    margin-top: 2rem;
}

.info-card-title {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.info-card-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ══════════════════════════════════════ */
/*  Right Panel                          */
/* ══════════════════════════════════════ */

.auth-panel-right {
    padding: 2rem 1.25rem;
}

@media (min-width: 576px) {
    .auth-panel-right {
        padding: 3rem 2.5rem;
    }
}

.form-wrapper {
    max-width: 28rem;
    margin: 0 auto;
}

/* ══════════════════════════════════════ */
/*  Mobile Brand                         */
/* ══════════════════════════════════════ */

.mobile-brand {
    display: block;
}

@media (min-width: 1200px) {
    .mobile-brand {
        display: none;
    }
}

.mobile-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-brand a:hover {
    color: var(--slate-900);
}

.mobile-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--slate-900);
    color: #fff;
    font-weight: 600;
}

/* ══════════════════════════════════════ */
/*  Section Headers                      */
/* ══════════════════════════════════════ */

.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--sky-700);
    margin-bottom: 0;
}

.section-title {
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

.section-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--slate-500);
}

/* ══════════════════════════════════════ */
/*  Form Enhancements (over Bootstrap)   */
/* ══════════════════════════════════════ */

.auth-form .form-control {
    border-radius: 10px;
    border-color: var(--slate-200);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .form-control::placeholder {
    color: var(--slate-400);
}

.auth-form .form-control:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.password-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}

.forgot-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sky-700);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--sky-900);
}

/* ══════════════════════════════════════ */
/*  Remember Me (custom style)           */
/* ══════════════════════════════════════ */

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-bottom: 1.25rem;
}

.remember-wrapper input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--sky-600);
}

/* ══════════════════════════════════════ */
/*  Submit Button (custom gradient)      */
/* ══════════════════════════════════════ */

.btn-auth {
    border-radius: 10px;
    background: var(--slate-950);
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-auth:hover {
    background: var(--sky-900);
}

.btn-auth:focus {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

/* ══════════════════════════════════════ */
/*  Auth Footer Link                     */
/* ══════════════════════════════════════ */

.auth-footer a {
    font-weight: 600;
    color: var(--sky-700);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--sky-900);
}

/* ══════════════════════════════════════ */
/*  Custom Alert Styles                  */
/* ══════════════════════════════════════ */

.auth-alert-success {
    border-radius: 10px;
    border: 1px solid var(--emerald-200);
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.auth-alert-error {
    border-radius: 1rem;
    border: 1px solid var(--rose-200);
    background: var(--rose-50);
    color: var(--rose-700);
}

/* ══════════════════════════════════════ */
/*  OTP Input Boxes (fully custom)       */
/* ══════════════════════════════════════ */

.otp-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.otp-box {
    width: 48px;
    height: 56px;
    border: 2px solid var(--slate-200);
    border-radius: 1rem;
    background: #fff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    font-family: 'Courier New', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: var(--sky-500);
}

.otp-box:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.otp-box:not(:placeholder-shown) {
    border-color: var(--sky-600);
    background: var(--sky-50);
}

.otp-separator {
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
}

.otp-separator span {
    display: block;
    width: 8px;
    height: 3px;
    background: var(--slate-200);
    border-radius: 2px;
}

@media (min-width: 480px) {
    .otp-box {
        width: 52px;
        height: 60px;
        font-size: 1.75rem;
    }

    .otp-inputs {
        gap: 0.625rem;
    }
}

/* ══════════════════════════════════════ */
/*  OTP Timer                            */
/* ══════════════════════════════════════ */

.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.otp-timer .material-symbols-outlined {
    font-size: 18px;
}

.otp-timer.timer-warning {
    color: #d97706;
}

.otp-timer.timer-warning strong {
    color: #b45309;
}

.otp-timer.timer-expired {
    color: var(--rose-700);
}

.otp-timer.timer-expired strong {
    color: #dc2626;
}

/* ══════════════════════════════════════ */
/*  OTP Resend                           */
/* ══════════════════════════════════════ */

.otp-resend .link-btn {
    color: var(--sky-700);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.otp-resend .link-btn:hover {
    text-decoration: underline;
    color: var(--sky-900);
}

/* ══════════════════════════════════════ */
/*  Verify Icon                          */
/* ══════════════════════════════════════ */

.verify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--sky-50);
    border: 2px solid var(--sky-100);
}

.verify-icon .material-symbols-outlined {
    font-size: 2rem;
    color: var(--sky-600);
}

.verify-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.verify-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.verify-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}

.verify-hint .material-symbols-outlined {
    font-size: 16px;
}