/* ============================================================
   Login & Authentication Pages — Global Stylesheet
   Shared by: login, login-step-2, login-ooo, pin, forgot-password
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #333;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- Header Bar ----- */
.auth-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #296B91;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.auth-header__logo img {
    height: 28px;
    width: auto;
}

.auth-header__title {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ----- Page Wrapper ----- */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 32px;          /* top accounts for fixed header */
}

.auth-page-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 920px;
}

.auth-maintenance-banner {
    position: relative;
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.auth-maintenance-banner__content {
    flex: 1;
}

.auth-maintenance-banner__close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #856404;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    opacity: 0.7;
}

.auth-maintenance-banner__close:hover {
    opacity: 1;
    color: inherit;
}

/* ----- Card Container ----- */
.auth-card {
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
}

/* --- Simple card (pin, forgot-password) — no banner --- */
.auth-card--simple {
    max-width: 440px;
    min-height: auto;
    flex-direction: column;
}

.auth-card--simple .auth-card__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 0;
    background: #296B91;
    border-radius: 12px 12px 0 0;
}

.auth-card--simple .auth-card__brand img {
    height: 36px;
    width: auto;
}

/* ----- Banner (left side) ----- */
.auth-banner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fafbfc;
    border-right: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.auth-banner__content {
    text-align: center;
    max-width: 340px;
}

.auth-banner__title {
    font-size: 20px;
    font-weight: 600;
    color: #296B91;
    margin-bottom: 16px;
    line-height: 1.3;
}

.auth-banner__image {
    max-width: 60%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    border-radius: 8px;
}

.auth-banner__text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.auth-banner__link {
    font-size: 13px;
    color: #296B91;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.auth-banner__link:hover {
    color: #1a4a66;
    text-decoration: underline;
}

/* Banner dots / carousel indicators */
.auth-banner__dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.auth-banner__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .3s;
}
.auth-banner__dot:hover {
    background: #999;
}
.auth-banner__dot.active {
    background: #296B91;
}

/* ----- Form Panel (right side) ----- */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    position: relative;
}

.auth-form-panel__heading {
    font-size: 22px;
    font-weight: 600;
    color: #296B91;
    margin-bottom: 8px;
    text-align: center;
}

.auth-form-panel__subheading {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.5;
    max-width: 320px;
}

/* ----- Form ----- */
.auth-form {
    width: 100%;
    max-width: 320px;
}

.auth-form__group {
    margin-bottom: 20px;
}

.auth-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: .2px;
}

.auth-form__input {
    width: 100%;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafbfc;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
}
.auth-form__input:focus {
    border-color: #296B91;
    box-shadow: 0 0 0 3px rgba(41, 107, 145, .12);
    background: #fff;
}

.auth-form__input--checkbox {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* ----- Buttons ----- */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    outline: none;
    text-decoration: none;
}

.auth-btn--primary {
    background: #296B91;
    color: #fff;
    box-shadow: 0 2px 8px rgba(41, 107, 145, .25);
}
.auth-btn--primary:hover {
    background: #1f5674;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 107, 145, .3);
}
.auth-btn--primary:active {
    transform: translateY(0);
}

.auth-btn--secondary {
    background: #e9f1f7;
    color: #296B91;
    box-shadow: none;
    margin-top: 10px;
}
.auth-btn--secondary:hover {
    background: #d6e6f0;
}

.auth-btn + .auth-btn {
    margin-top: 10px;
}

/* ----- Messages ----- */
.auth-message {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.auth-message--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-message--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ----- Links ----- */
.auth-link {
    display: inline-block;
    font-size: 13px;
    color: #296B91;
    text-decoration: none;
    transition: color .2s;
}
.auth-link:hover {
    color: #1a4a66;
    text-decoration: underline;
}

.auth-link--subtle {
    color: #888;
    font-size: 12px;
}
.auth-link--subtle:hover {
    color: #555;
}

/* ----- Help Text ----- */
.auth-help {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ----- Footer branding ----- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer a {
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    transition: color .2s;
}
.auth-footer a:hover {
    color: #666;
}

/* ----- Checkbox row ----- */
.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #296B91;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-row label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablets and smaller */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
    }

    .auth-banner {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 28px 20px;
        min-height: 200px;
    }

    .auth-banner__image {
        max-width: 40%;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .auth-page {
        padding: 72px 8px 16px;
    }

    .auth-card {
        border-radius: 8px;
    }

    .auth-banner {
        padding: 20px 16px;
        min-height: 160px;
    }

    .auth-banner__title {
        font-size: 17px;
    }

    .auth-banner__image {
        max-width: 50%;
    }

    .auth-form-panel {
        padding: 24px 16px;
    }

    .auth-form-panel__heading {
        font-size: 19px;
    }

    .auth-header {
        height: 52px;
        padding: 0 12px;
    }

    .auth-header__logo img {
        height: 24px;
    }

    .auth-header__title {
        font-size: 12px;
    }
}

/* Large screens: prevent the card from being too narrow */
@media (min-width: 1200px) {
    .auth-card {
        max-width: 1000px;
    }
}
