/* ==========================================================================
   Auth screens — login, forgot password, reset password

   A split card: brand panel left, form right, mirroring the Meta Mint CRM
   sign-in. These pages are standalone documents (they do not load the app
   layout), so this file owns the whole shell rather than patching it. It
   replaces the older `.authentication-card` / `.copyright_signup` shell, which
   pinned the card to `height: 100vh` — so anything taller spilled out of the
   viewport — and positioned the copyright `absolute; bottom: 0`, on top of the
   Forgot Password link.
   ========================================================================== */

:root {
    --auth-accent: #3461ff;
    --auth-ink: #2b2f38;
    --auth-muted: #7a828f;
    --auth-surface: #ffffff;
    --auth-ground: #eef1f6;
}

.auth-page {
    margin: 0;
    background-color: var(--auth-ground);
    color: var(--auth-ink);
}

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    background: var(--auth-surface);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
}

/* Brand panel ------------------------------------------------------------ */

.auth-brand-panel {
    display: flex;
    flex: 0 0 42%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 36px 30px 28px;
    background: linear-gradient(160deg, #131c3d 0%, #0e1430 45%, #1d2c72 100%);
    color: #fff;
}

/* The logo sits on a white tile: a customer logo is as likely to be a
   white-background JPEG/PNG as a transparent one, and a white block floating on
   the gradient would look like a rendering fault rather than a brand mark. */
.auth-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

/* Capped in both directions, because the logo is whatever the customer
   uploaded. A square-canvas file — usually a wide wordmark centred in one,
   mostly padding — would otherwise grow to the panel's full width and swamp it.
   Cropping the padding is not an option from here: on a genuinely square
   emblem the same crop would cut the mark itself. */
.auth-brand-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.auth-brand-body {
    text-align: center;
}

.auth-brand-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-clock {
    margin-top: 14px;
}

.auth-clock-time {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.auth-clock-date {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.auth-credits-panel {
    width: 100%;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* The same block for the breakpoint where the brand panel is hidden, so a phone
   does not lose the credit and the social links with it. */
.auth-credits-compact {
    display: none;
    padding-bottom: 12px;
    text-align: center;
}

.auth-credit {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.auth-credit a {
    color: #9db6ff;
    text-decoration: none;
}

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

.auth-credits-compact .auth-credit {
    color: var(--auth-muted);
}

.auth-credits-compact .auth-credit a {
    color: var(--auth-accent);
}

.auth-credits-compact .auth-socials a {
    color: #697080;
    background: #f1f3f7;
}

.auth-credits-compact .auth-socials a:hover {
    color: #fff;
    background: var(--auth-accent);
}

.auth-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.auth-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-socials a:hover {
    color: #fff;
    background: var(--auth-accent);
}

/* Form panel ------------------------------------------------------------- */

.auth-form-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

/* Stands in for the brand panel below its breakpoint. The caps match the panel
   tile's, so the mark does not shrink just because the viewport narrowed. */
.auth-mobile-brand {
    display: none;
    padding: 22px 24px 0;
    text-align: center;
}

.auth-mobile-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 140px;
    margin: 0 auto;
    object-fit: contain;
}

/* Centred, so a short form (forgot password) sits against the middle of the
   brand panel instead of stranding a block of empty card beneath it. */
.auth-form-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px 32px;
}

.auth-heading {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1d2230;
}

.auth-subheading {
    margin: 6px 0 24px;
    font-size: 13.5px;
    color: var(--auth-muted);
}

/* Tabs ------------------------------------------------------------------- */

.auth-tabs {
    gap: 4px;
    padding: 4px;
    margin-bottom: 22px;
    background: #f1f3f7;
    border: 0;
    border-radius: 10px;
}

.auth-tabs .nav-item {
    display: flex;
}

.auth-tabs .nav-link {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #697080;
    background: transparent;
    border: 0;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-tabs .nav-link:hover {
    color: var(--auth-ink);
}

.auth-tabs .nav-link.active {
    color: var(--auth-accent);
    background: var(--auth-surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

/* Fields ----------------------------------------------------------------- */

.auth-page .form-label {
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #4b5262;
}

.auth-field {
    position: relative;
}

.auth-field .auth-field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    display: flex;
    font-size: 14px;
    color: #98a0ae;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-page .form-control {
    height: 44px;
    padding-left: 38px;
    font-size: 14px;
    color: var(--auth-ink);
    border-color: #dfe3ea;
    border-radius: 9px;
}

.auth-page .form-control::placeholder {
    color: #a7aebb;
}

.auth-page .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(52, 97, 255, 0.13);
}

.auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--auth-muted);
}

/* Actions ---------------------------------------------------------------- */

.auth-btn {
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9px;
}

.auth-btn .bx {
    margin-left: 6px;
    vertical-align: middle;
}

.auth-link {
    font-size: 13px;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.auth-form-foot {
    padding: 14px 44px 18px;
    font-size: 11.5px;
    color: #9aa2b1;
    text-align: center;
    border-top: 1px solid #eef0f4;
}

.auth-form-foot p {
    margin: 0;
}

/* Responsive ------------------------------------------------------------- */

@media screen and (max-width: 991px) {
    .auth-card {
        max-width: 440px;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-brand,
    .auth-credits-compact {
        display: block;
    }

    .auth-form-body {
        padding: 20px 28px 28px;
    }

    .auth-form-foot {
        padding: 16px 28px 18px;
    }
}

@media screen and (max-width: 575px) {
    .auth-shell {
        padding: 16px 12px;
    }

    .auth-form-body {
        padding: 20px 20px 24px;
    }

    .auth-form-foot {
        padding: 12px 20px 16px;
    }
}
