/* =====================================================================
   The Professional Couriers - unified sign-in (Admin/signin.aspx)
   Colours follow the portal: navy sidebar + TPC red accents.
   ===================================================================== */
:root {
    --navy-950: #24233a;
    --navy-900: #2e2d45;
    --navy-800: #37364f;
    --navy: #3f3e58;
    --navy-500: #5b5a78;
    --red: #e31e24;
    --red-600: #c9161c;
    --red-50: #fff3f3;
    --ink: #1f1e2e;
    --muted: #6d6c82;
    --line: #e3e3ec;
    --field: #f8f8fb;
    --bg: #f3f3f7;
    --ok: #12805c;
    --radius: 12px;
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

[hidden] {
    display: none !important;
}

html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
    color: inherit;
}

/* ---------- Page grid ---------- */
.auth {
    display: grid;
    grid-template-columns: minmax(400px, 40%) 1fr;
    min-height: 100vh;
}

/* ---------- Brand panel (left) ---------- */
.brand {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    color: #fff;
    padding: 40px 52px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

    .brand .facets {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .brand::after { /* soft glow behind the copy */
        content: "";
        position: absolute;
        z-index: 0;
        width: 520px;
        height: 520px;
        left: -160px;
        bottom: -200px;
        background: radial-gradient(circle, rgba(227,30,36,.20), transparent 65%);
    }

    .brand > *:not(.facets) {
        position: relative;
        z-index: 1;
    }

.brand-stripe {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--red) 0%, var(--red) 35%, rgba(227,30,36,.25) 100%);
}

.brand-logo {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 14px 26px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    text-decoration: none;
}

    .brand-logo img {
        height: 78px;
        max-width: 100%;
        width: auto;
        display: block;
    }

/* Copy sits right under the logo (no empty gap); the footer is pushed to the bottom instead */
.brand-copy {
    margin-top: 0;
}

.brand-foot {
    margin-top: auto !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
}

    .eyebrow::before {
        content: "";
        width: 22px;
        height: 2px;
        background: var(--red);
        border-radius: 2px;
    }

.brand-copy h2 {
    margin: 14px 0 12px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.01em;
}

    .brand-copy h2 strong {
        font-weight: 800;
    }

.brand-copy .lede {
    margin: 0 0 28px;
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255,255,255,.72);
    max-width: 420px;
}

/* Service list on the brand panel (follows the picker) */
.svc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-width: 440px;
}
    /* Service logo on a white plate (falls back to the code if the image is missing) */
    .svc-list .logo {
        flex: 0 0 96px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: 3px 6px;
        border-radius: 9px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 0 0 2px transparent;
        transition: box-shadow .2s;
    }

        .svc-list .logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

        .svc-list .logo em {
            display: none;
            font-style: normal;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: .04em;
            color: var(--navy);
        }

        .svc-list .logo.no-img img {
            display: none;
        }

        .svc-list .logo.no-img em {
            display: block;
        }

    .svc-list li.is-active .logo {
        box-shadow: 0 0 0 2px var(--red);
    }

.is-client .svc-list li.is-active .logo {
    box-shadow: none;
}

/* "More services" row keeps a code pill, same width as the logos */
.svc-list #brandOther .code {
    flex-basis: 96px;
    padding: 11px 0;
}

.svc-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    transition: background .2s, border-color .2s, transform .2s;
}

.svc-list .code {
    flex: 0 0 52px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 5px 0;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.svc-list .txt {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .svc-list .txt b {
        font-size: 14px;
        font-weight: 700;
    }

    .svc-list .txt small {
        font-size: 12.5px;
        color: rgba(255,255,255,.6);
    }

.svc-list li.is-active {
    background: rgba(255,255,255,.09);
    border-color: rgba(227,30,36,.65);
    transform: translateX(4px);
}

    .svc-list li.is-active .code {
        background: var(--red);
    }

.brand-foot {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
}

/* ---------- Sign-in panel (right) ---------- */
.panel {
    display: flex;
    flex-direction: column;
    padding: 24px 40px 32px;
    background: radial-gradient(1200px 500px at 100% 0%, rgba(63,62,88,.06), transparent 60%), var(--bg);
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background .2s;
}

    .back-link:hover {
        background: rgba(63,62,88,.08);
    }

.panel-top .help {
    font-size: 13px;
    color: var(--muted);
}

.card {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    padding: 34px 36px 26px;
    box-shadow: 0 1px 2px rgba(31,30,46,.04), 0 18px 48px rgba(31,30,46,.10);
}

    .card::before { /* red accent, same as the portal cards */
        content: "";
        position: absolute;
        top: 0;
        left: 36px;
        width: 56px;
        height: 4px;
        border-radius: 0 0 4px 4px;
        background: var(--red);
    }

    .card h1 {
        margin: 0;
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -.015em;
        color: var(--ink);
    }

    .card .sub {
        margin: 6px 0 22px;
        color: var(--muted);
        font-size: 14.5px;
    }

        .card .sub b {
            color: var(--red);
        }

/* Member / Client switch (first choice on the card) */
.acct-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.acct {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    min-width: 0;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s, color .15s;
}

    .acct:hover {
        border-color: #c9c8d8;
    }

    .acct:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(63,62,88,.15);
    }

.acct-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef0f5;
    color: var(--navy);
    transition: background .15s, color .15s;
}

.acct-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

    .acct-txt b {
        font-size: 15px;
        font-weight: 800;
        color: var(--ink);
    }

    .acct-txt small {
        font-size: 12px;
        line-height: 1.3;
        color: var(--muted);
    }

.acct.is-active {
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: 0 8px 20px rgba(63,62,88,.25);
}

    .acct.is-active .acct-ico {
        background: var(--red);
        color: #fff;
    }

    .acct.is-active .acct-txt b {
        color: #fff;
    }

    .acct.is-active .acct-txt small {
        color: rgba(255,255,255,.7);
    }

/* Client chosen: no service is highlighted on the brand panel */
.is-client .svc-list li.is-active {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.08);
    transform: none;
}

    .is-client .svc-list li.is-active .code {
        background: rgba(255,255,255,.08);
    }

#memberArea {
    animation: menuIn .18s ease-out;
}

/* Step labels */
.step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy-500);
}

    .step i {
        font-style: normal;
        display: inline-grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--navy);
        color: #fff;
        font-size: 11.5px;
        letter-spacing: 0;
    }

fieldset.service {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
    min-width: 0;
}

/* Service tiles */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.svc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}

    .svc:hover {
        border-color: #c9c8d8;
        transform: translateY(-1px);
    }

    .svc:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(63,62,88,.15);
    }

    .svc .code {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: .03em;
        color: var(--navy);
    }

    .svc .name {
        font-size: 11.5px;
        font-weight: 500;
        color: var(--muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .svc.is-active {
        border-color: var(--red);
        background: var(--red-50);
        box-shadow: 0 6px 16px rgba(227,30,36,.12);
    }

        .svc.is-active .code {
            color: var(--red);
        }

        .svc.is-active::after { /* tick badge */
            content: "";
            position: absolute;
            top: -7px;
            right: -7px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
            box-shadow: 0 0 0 3px #fff;
        }

    /* Tile clicked for a service on another domain, while the browser leaves */
    .svc.is-going {
        border-color: var(--navy);
        cursor: progress;
        opacity: .7;
    }

/* 5th tile: "More" services */
fieldset.service {
    position: relative;
}

.svc-grid.has-more {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.svc-more {
    border-style: dashed;
    background: #fafafc;
}

    .svc-more .code {
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

    .svc-more .chev {
        transition: transform .2s;
        color: var(--navy-500);
    }

    .svc-more[aria-expanded="true"] {
        border-color: var(--navy);
        border-style: solid;
        background: #fff;
    }

        .svc-more[aria-expanded="true"] .chev {
            transform: rotate(180deg);
        }

    .svc-more.is-active {
        border-style: solid;
    }

        .svc-more.is-active .chev {
            color: var(--red);
        }

.svc-menu {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 8px);
    width: 300px;
    max-width: 100%;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(31,30,46,.18);
    animation: menuIn .14s ease-out;
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.svc-menu-title {
    margin: 4px 8px 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.svc-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

    .svc-opt:hover, .svc-opt:focus-visible {
        background: #f3f3f8;
        outline: none;
    }

    .svc-opt .code {
        flex: 0 0 48px;
        text-align: center;
        padding: 5px 0;
        border-radius: 8px;
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: .04em;
        background: #eef0f5;
        color: var(--navy);
    }

    .svc-opt .txt {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
        min-width: 0;
    }

        .svc-opt .txt b {
            font-size: 14px;
            font-weight: 700;
            color: var(--ink);
        }

        .svc-opt .txt small {
            font-size: 12px;
            color: var(--muted);
        }

    .svc-opt.is-active {
        background: var(--red-50);
    }

        .svc-opt.is-active .code {
            background: var(--red);
            color: #fff;
        }

/* Account type: segmented control */
.role-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #eef0f5;
    border-radius: 14px;
    margin-bottom: 8px;
}

    .role-switch .role {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 8px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--muted);
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
        cursor: pointer;
        transition: background .15s, color .15s, box-shadow .15s;
    }

        .role-switch .role svg {
            flex: none;
        }

        .role-switch .role:hover {
            color: var(--navy);
        }

        .role-switch .role.is-active {
            background: #fff;
            color: var(--navy);
            box-shadow: 0 1px 2px rgba(31,30,46,.08), 0 4px 10px rgba(31,30,46,.06);
        }

            .role-switch .role.is-active svg {
                color: var(--red);
            }

.role-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--muted);
}

    .role-note svg {
        flex: none;
        color: var(--navy-500);
    }

/* Fields */
.fields {
    margin-top: 14px;
}

.field {
    margin-bottom: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 12px;
}

    .field-row .field {
        margin-bottom: 0;
    }

.field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.input {
    position: relative;
}

    .input > svg {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: #9b9ab0;
        pointer-events: none;
        transition: color .15s;
    }

    .input input {
        width: 100%;
        height: 48px;
        padding: 0 14px 0 44px;
        border: 1.5px solid var(--line);
        border-radius: var(--radius);
        background: var(--field);
        font-size: 15px;
        font-weight: 500;
        outline: none;
        transition: border-color .15s, box-shadow .15s, background .15s;
    }

    .input.plain input {
        padding-left: 14px;
        letter-spacing: .2em;
        font-weight: 700;
        text-transform: uppercase;
    }

        .input.plain input::placeholder {
            letter-spacing: normal;
            font-weight: 500;
            text-transform: none;
        }

    .input input::placeholder {
        color: #a9a8bb;
        font-weight: 400;
    }

    .input input:focus {
        border-color: var(--navy);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(63,62,88,.10);
    }

    .input:focus-within > svg {
        color: var(--navy);
    }

    .input input.upper {
        text-transform: uppercase;
    }

        .input input.upper::placeholder {
            text-transform: none;
        }

    .input input.is-invalid {
        border-color: var(--red);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(227,30,36,.10);
    }

.has-toggle input {
    padding-right: 48px;
}

.eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9b9ab0;
    cursor: pointer;
}

    .eye:hover {
        background: rgba(63,62,88,.07);
        color: var(--navy);
    }

    .eye.is-on {
        color: var(--red);
    }

    .eye svg {
        width: 18px;
        height: 18px;
    }

.hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.fields > .hint {
    margin: 8px 0 16px;
}

/* Captcha */
.captcha {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-img {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 48px;
    padding-right: 44px;
    border: 1.5px dashed #cfcfdc;
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

    .captcha-img img {
        display: block;
        height: 44px;
        width: 150px;
        object-fit: cover;
    }

.refresh {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: #f1f1f6;
    color: var(--navy);
    cursor: pointer;
    transition: background .15s, transform .3s;
}

    .refresh:hover {
        background: #e6e6ef;
    }

    .refresh:active svg {
        transform: rotate(180deg);
        transition: transform .3s;
    }

    .refresh svg {
        width: 17px;
        height: 17px;
    }

.captcha .input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Messages */
.form-error {
    margin: 2px 0 14px;
    padding: 11px 14px 11px 40px;
    position: relative;
    font-size: 13.5px;
    line-height: 1.45;
    color: #9f1217;
    background: #fdeeee;
    border-radius: 10px;
    border-left: 3px solid var(--red);
}

    .form-error::before {
        content: "!";
        position: absolute;
        left: 13px;
        top: 11px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--red);
        color: #fff;
        font-size: 12px;
        font-weight: 800;
    }

.notice {
    margin: -6px 0 18px;
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.45;
    border-radius: 10px;
}

.notice-success {
    color: #0d5e44;
    background: #e8f6f0;
    border-left: 3px solid var(--ok);
}

.notice-info {
    color: var(--navy-900);
    background: #eef0f8;
    border-left: 3px solid var(--navy);
}

/* Button */
.btn-primary {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ea2a30, var(--red-600));
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(227,30,36,.25), inset 0 1px 0 rgba(255,255,255,.15);
    transition: transform .15s, box-shadow .15s, filter .15s;
}

    .btn-primary:hover {
        filter: brightness(1.04);
        box-shadow: 0 12px 26px rgba(227,30,36,.32);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(227,30,36,.25);
    }

    .btn-primary.is-loading {
        cursor: progress;
        filter: saturate(.8);
        opacity: .85;
    }

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #f0f0f5;
    font-size: 12.5px;
    color: var(--muted);
}

    .secure-note svg {
        width: 16px;
        height: 16px;
        color: var(--ok);
    }

/* ---------- "Leave this page?" box (COD / PRD -> proeserve.com) ---------- */
.leave {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(36,35,58,.55);
    backdrop-filter: blur(3px);
    animation: leaveFade .15s ease-out;
}

.leave-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 28px 22px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(31,30,46,.30);
    text-align: center;
    animation: menuIn .18s ease-out;
}

    .leave-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 56px;
        height: 4px;
        border-radius: 0 0 4px 4px;
        background: var(--red);
    }

.leave-ico {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--red-50);
    color: var(--red);
}

.leave-box h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}

.leave-box p {
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
}

    .leave-box p b {
        color: var(--ink);
    }

.leave-btns {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
}

.btn-ghost, .btn-go {
    height: 46px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, filter .15s;
}

.btn-ghost {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy);
}

    .btn-ghost:hover {
        background: #f3f3f8;
    }

.btn-go {
    border: 0;
    background: linear-gradient(180deg, #ea2a30, var(--red-600));
    color: #fff;
    box-shadow: 0 8px 18px rgba(227,30,36,.25);
}

    .btn-go:hover {
        filter: brightness(1.04);
    }

    .btn-go.is-loading {
        cursor: progress;
        opacity: .85;
    }

    .btn-ghost:focus-visible, .btn-go:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(63,62,88,.18);
    }

@keyframes leaveFade {
    from {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .leave-btns {
        grid-template-columns: 1fr;
    }

        .leave-btns .btn-go {
            order: -1;
        }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .auth {
        grid-template-columns: minmax(340px, 38%) 1fr;
    }

    .brand {
        padding: 32px 36px 26px;
    }

    .brand-copy h2 {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .brand {
        padding: 22px 22px 26px;
        gap: 18px;
    }

    .brand-stripe {
        top: auto !important;
        left: 0;
        width: auto !important;
        height: 4px;
    }

    .brand-copy {
        margin-top: 0;
    }

        .brand-copy h2 {
            font-size: 22px;
            margin: 8px 0 4px;
        }

        .brand-copy .lede {
            margin: 0;
            font-size: 14px;
        }

    .svc-list, .brand-foot, .eyebrow {
        display: none;
    }

    .brand-logo img {
        height: 56px;
    }

    .panel {
        padding: 16px 16px 28px;
    }

    .card {
        margin: 12px auto 0;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 26px 18px 20px;
        border-radius: 16px;
    }

        .card::before {
            left: 18px;
        }

        .card h1 {
            font-size: 22px;
        }

    .svc-grid {
        gap: 7px;
    }

    .svc {
        padding: 10px 2px 8px;
    }

        .svc .code {
            font-size: 14px;
        }

        .svc .name {
            font-size: 10px;
        }

    .svc-grid.has-more {
        gap: 5px;
    }

        .svc-grid.has-more .svc .code {
            font-size: 13px;
        }

        .svc-grid.has-more .svc .name {
            display: none;
        }

    .svc-menu {
        width: 100%;
    }

    .acct {
        padding: 10px;
        gap: 9px;
    }

    .acct-ico {
        width: 32px;
        height: 32px;
    }

    .acct-txt small {
        font-size: 10.5px;
    }

    .role-switch .role {
        font-size: 12.5px;
        gap: 5px;
        padding: 9px 4px;
    }

        .role-switch .role svg {
            width: 15px;
            height: 15px;
        }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

        .field-row .field {
            margin-bottom: 16px;
        }

    .captcha-img img {
        width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
