/* Shared SCC employee and customer authentication experience. */
:root {
    --scc-auth-navy: #082b55;
    --scc-auth-navy-deep: #051d3d;
    --scc-auth-navy-light: #12477f;
    --scc-auth-blue: #1768cf;
    --scc-auth-blue-dark: #0f55ad;
    --scc-auth-red: #ed1c24;
    --scc-auth-page: #f3f6fb;
    --scc-auth-ink: #172841;
    --scc-auth-muted: #6d7e95;
    --scc-auth-border: #dbe3ee;
    --scc-auth-success: #159447;
    --scc-auth-shadow: 0 24px 68px rgba(6, 31, 67, 0.15);
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--scc-auth-page);
}

body.scc-auth-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow: auto !important;
    color: var(--scc-auth-ink);
    background: var(--scc-auth-page) !important;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif !important;
}

.scc-auth-page *,
.scc-auth-page *::before,
.scc-auth-page *::after {
    box-sizing: border-box;
}

.scc-auth-page button,
.scc-auth-page input {
    font: inherit;
}

.scc-auth-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
}

.scc-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--scc-auth-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.scc-auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--scc-auth-blue);
}

.scc-auth-forgot-link,
.scc-auth-back-link {
    color: var(--scc-auth-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.scc-auth-forgot-link:hover,
.scc-auth-back-link:hover {
    text-decoration: underline;
}

.scc-auth-recovery-page {
    background:
        radial-gradient(circle at 15% 15%, rgba(23, 104, 207, 0.14), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(237, 28, 36, 0.08), transparent 28%),
        var(--scc-auth-page) !important;
}

.scc-auth-recovery-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 28px 18px;
}

.scc-auth-recovery-card {
    width: 100%;
    padding: clamp(26px, 5vw, 42px);
    border: 1px solid rgba(219, 227, 238, 0.9);
    box-shadow: var(--scc-auth-shadow);
}

.scc-auth-recovery-card h1 {
    margin: 0;
    color: var(--scc-auth-ink);
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.scc-auth-back-link {
    display: inline-flex;
    margin-bottom: 22px;
}

.scc-auth-recovery-identity {
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid var(--scc-auth-border);
    border-radius: 10px;
    background: #f7faff;
}

.scc-auth-recovery-identity span {
    color: var(--scc-auth-muted);
    font-size: 0.75rem;
}

.scc-auth-button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 520px) {
    .scc-auth-card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

.scc-auth-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(470px, 0.9fr);
}

.scc-auth-brand-panel {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 4.5vw, 64px) clamp(32px, 5.5vw, 82px) 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 12%, rgba(66, 140, 230, 0.36), transparent 30%),
        radial-gradient(circle at 12% 88%, rgba(237, 28, 36, 0.16), transparent 25%),
        linear-gradient(138deg, var(--scc-auth-navy-deep) 0%, var(--scc-auth-navy) 52%, var(--scc-auth-navy-light) 100%);
}

.scc-auth-brand-panel::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(135deg, #000, transparent 75%);
    content: "";
}

.scc-auth-brand-panel::after {
    position: absolute;
    right: -150px;
    bottom: -150px;
    z-index: -1;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    box-shadow:
        0 0 0 52px rgba(255, 255, 255, 0.025),
        0 0 0 104px rgba(255, 255, 255, 0.018);
    content: "";
}

.scc-auth-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.scc-auth-logo {
    width: clamp(172px, 18vw, 236px);
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.19);
}

.scc-auth-product-badge {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    color: #d9e8fb;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.scc-auth-brand-copy {
    width: min(100%, 720px);
    display: grid;
    align-content: center;
}

.scc-auth-kicker {
    margin: 0 0 10px;
    color: #91bcf3;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scc-auth-brand-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.55rem, 5vw, 5.35rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.scc-auth-brand-copy h1 span {
    color: #86b9fa;
}

.scc-auth-intro {
    max-width: 650px;
    margin: 20px 0 0;
    color: #c9daee;
    font-size: clamp(0.88rem, 1.22vw, 1.08rem);
    line-height: 1.62;
}

.scc-auth-flow {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    color: #dbe8f8;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.68rem;
    font-weight: 750;
}

.scc-auth-flow span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scc-auth-flow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4da2ff;
    box-shadow: 0 0 0 3px rgba(77, 162, 255, 0.16);
}

.scc-auth-flow span:last-child i {
    background: #42bf72;
    box-shadow: 0 0 0 3px rgba(66, 191, 114, 0.17);
}

.scc-auth-flow b {
    color: #7695bc;
    font-weight: 500;
}

.scc-auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 24px;
}

.scc-auth-feature-grid article {
    min-width: 0;
    min-height: 86px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(6px);
}

.scc-auth-feature-grid svg {
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 7px;
    fill: none;
    stroke: #9ec7fb;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: rgba(121, 177, 245, 0.13);
}

.scc-auth-feature-grid strong,
.scc-auth-feature-grid small {
    display: block;
}

.scc-auth-feature-grid strong {
    overflow: hidden;
    color: #f7fbff;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scc-auth-feature-grid small {
    margin-top: 4px;
    color: #9fb6d1;
    font-size: 0.61rem;
    line-height: 1.35;
}

.scc-auth-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #8fa9c8;
    font-size: 0.62rem;
    font-weight: 700;
}

.scc-auth-form-panel {
    min-width: 0;
    display: grid;
    place-items: center;
    align-content: center;
    padding: clamp(22px, 4vw, 58px);
    background:
        radial-gradient(circle at 100% 0%, rgba(23, 104, 207, 0.08), transparent 30%),
        var(--scc-auth-page);
}

.scc-auth-card {
    position: relative;
    width: min(100%, 500px);
    padding: clamp(26px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid var(--scc-auth-border);
    border-radius: 18px;
    background: var(--look-card, #fff);
    box-shadow: var(--scc-auth-shadow);
}

.scc-auth-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--scc-auth-red) 0 30%, var(--scc-auth-blue) 30% 100%);
    content: "";
}

.scc-auth-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.scc-auth-card-icon {
    width: 43px;
    height: 43px;
    display: grid;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 10px;
    color: var(--scc-auth-blue);
    background: #eaf2ff;
}

.scc-auth-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scc-auth-card-header p {
    margin: 0 0 3px;
    color: var(--scc-auth-blue);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scc-auth-card-header h2 {
    margin: 0;
    color: var(--scc-auth-ink);
    font-size: clamp(1.55rem, 2.7vw, 2.05rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.scc-auth-card-copy {
    margin: 14px 0 0;
    color: var(--scc-auth-muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.scc-auth-alert,
.scc-auth-page .feedback-banner {
    margin: 14px 0 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #f1c5c8 !important;
    border-radius: 8px !important;
    color: #a32e35 !important;
    background: #fff0f1 !important;
    font-size: 0.72rem !important;
    font-weight: 700;
}

.scc-auth-alert.is-info {
    border-color: #bcdccf !important;
    color: #176747 !important;
    background: #edf9f2 !important;
}

.scc-auth-form,
.scc-auth-page .auth-form,
.scc-auth-page .customer-auth-form {
    display: grid !important;
    gap: 13px !important;
    margin-top: 20px !important;
}

.scc-auth-field,
.scc-auth-page .customer-auth-form .scc-auth-field {
    min-width: 0;
    display: grid !important;
    gap: 6px !important;
    color: #3c4d65 !important;
    font-size: 0.69rem !important;
    font-weight: 800 !important;
}

.scc-auth-input-shell {
    min-width: 0;
    min-height: 45px;
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #ccd7e5;
    border-radius: 9px;
    background: #fbfcfe;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.scc-auth-input-shell:focus-within {
    border-color: var(--scc-auth-blue);
    background: var(--look-card, #fff);
    box-shadow: 0 0 0 3px rgba(23, 104, 207, 0.12);
}

.scc-auth-input-shell > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #74869d;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scc-auth-page .scc-auth-input-shell input {
    width: 100% !important;
    min-width: 0;
    min-height: 43px !important;
    height: 43px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: var(--scc-auth-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.75rem !important;
    font-weight: 650;
}

.scc-auth-page .scc-auth-input-shell input::placeholder {
    color: #9aa8b9;
    font-weight: 500;
}

.scc-auth-password-shell {
    grid-template-columns: 19px minmax(0, 1fr) auto;
    padding-right: 7px;
}

.scc-auth-password-shell button {
    min-height: 31px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    color: #255f9e;
    background: #eaf2fc;
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 850;
}

.scc-auth-password-shell button:hover,
.scc-auth-password-shell button:focus-visible {
    color: #fff;
    background: var(--scc-auth-blue);
    outline: 0;
}

.scc-auth-captcha,
.scc-auth-page .customer-login-captcha.scc-auth-captcha {
    min-width: 0;
    display: grid !important;
    gap: 8px !important;
    margin: 1px 0 0 !important;
    padding: 10px !important;
    border: 1px solid #d4dfeb !important;
    border-radius: 10px !important;
    background: #f4f7fb !important;
}

.scc-auth-captcha legend,
.scc-auth-page .customer-login-captcha.scc-auth-captcha legend {
    padding: 0 6px;
    color: #43566f !important;
    font-size: 0.66rem !important;
    font-weight: 850 !important;
}

.scc-auth-captcha .login-captcha-visual,
.scc-auth-page .customer-login-captcha.scc-auth-captcha .login-captcha-visual {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center;
    gap: 8px !important;
}

.scc-auth-captcha .login-captcha-visual img,
.scc-auth-page .customer-login-captcha.scc-auth-captcha .login-captcha-visual img {
    width: 100% !important;
    max-width: 220px !important;
    height: 58px !important;
    display: block;
    border: 1px solid #ccd8e5 !important;
    border-radius: 8px !important;
    background: var(--look-card, #fff) !important;
    object-fit: fill;
    user-select: none;
}

.scc-auth-captcha .login-captcha-visual button,
.scc-auth-page .customer-login-captcha.scc-auth-captcha .login-captcha-visual button {
    min-height: 36px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px !important;
    border: 1px solid #c6d4e3 !important;
    border-radius: 7px !important;
    color: #315f96 !important;
    background: var(--look-card, #fff) !important;
    cursor: pointer;
    font-size: 0.63rem !important;
    font-weight: 850 !important;
}

.scc-auth-captcha .login-captcha-visual button:hover,
.scc-auth-captcha .login-captcha-visual button:focus-visible {
    border-color: var(--scc-auth-blue) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 104, 207, 0.1) !important;
}

.scc-auth-captcha-input {
    min-height: 41px;
    background: var(--look-card, #fff);
}

.scc-auth-page .scc-auth-captcha-input input {
    min-height: 39px !important;
    height: 39px !important;
    letter-spacing: 0.19em !important;
    text-transform: uppercase;
    font-weight: 850 !important;
}

.scc-auth-captcha > small,
.scc-auth-page .customer-login-captcha.scc-auth-captcha > small {
    color: #77889d !important;
    font-size: 0.6rem !important;
    line-height: 1.3;
}

.scc-auth-submit,
.scc-auth-page .customer-auth-submit.scc-auth-submit,
.scc-auth-page .primary-button.scc-auth-submit {
    width: 100% !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 9px !important;
    margin: 1px 0 0;
    padding: 9px 16px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--scc-auth-blue), var(--scc-auth-blue-dark)) !important;
    box-shadow: 0 9px 20px rgba(23, 104, 207, 0.2) !important;
    cursor: pointer;
    font-size: 0.76rem !important;
    font-weight: 850 !important;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scc-auth-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scc-auth-submit:hover,
.scc-auth-submit:focus-visible {
    transform: translateY(-1px);
    outline: 0;
    box-shadow: 0 12px 25px rgba(23, 104, 207, 0.27) !important;
}

.scc-auth-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
    color: #8290a2;
    font-size: 0.62rem;
}

.scc-auth-card-actions .customer-auth-link {
    margin: 0 !important;
    color: var(--scc-auth-blue) !important;
    font-size: 0.67rem !important;
    font-weight: 850;
    text-decoration: none;
}

.scc-auth-card-actions .customer-auth-link:hover {
    text-decoration: underline;
}

.scc-auth-access-note {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 10px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    color: #6e7f93;
    background: #f8fafc;
    font-size: 0.62rem;
    line-height: 1.4;
}

.scc-auth-access-note svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--scc-auth-success);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scc-auth-form-footer {
    margin: 16px 0 0;
    color: #8b99aa;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1120px) {
    .scc-auth-shell {
        grid-template-columns: minmax(420px, 0.95fr) minmax(450px, 1.05fr);
    }

    .scc-auth-brand-panel {
        padding-inline: 38px;
    }

    .scc-auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .scc-auth-feature-grid article {
        min-height: 0;
    }
}

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

    .scc-auth-brand-panel {
        min-height: auto;
        gap: 22px;
        padding: 24px;
    }

    .scc-auth-brand-copy h1 {
        font-size: clamp(2.2rem, 9vw, 3.8rem);
    }

    .scc-auth-intro {
        max-width: 720px;
    }

    .scc-auth-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .scc-auth-brand-footer,
    .scc-auth-flow {
        display: none;
    }

    .scc-auth-form-panel {
        min-height: auto;
        padding: 28px 18px 34px;
    }
}

@media (max-width: 620px) {
    .scc-auth-brand-panel {
        padding: 20px 17px;
    }

    .scc-auth-logo {
        width: 166px;
    }

    .scc-auth-product-badge {
        padding: 6px 8px;
        font-size: 0.52rem;
    }

    .scc-auth-brand-copy h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .scc-auth-intro {
        margin-top: 12px;
        font-size: 0.78rem;
    }

    .scc-auth-feature-grid {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .scc-auth-feature-grid article:nth-child(n + 2) {
        display: none;
    }

    .scc-auth-form-panel {
        padding: 18px 10px 26px;
    }

    .scc-auth-card {
        padding: 24px 17px;
        border-radius: 13px;
    }

    .scc-auth-card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-height: 760px) and (min-width: 881px) {
    .scc-auth-brand-panel {
        gap: 16px;
        padding-block: 22px 18px;
    }

    .scc-auth-brand-copy h1 {
        font-size: clamp(2.35rem, 4.4vw, 4.2rem);
    }

    .scc-auth-intro,
    .scc-auth-flow,
    .scc-auth-feature-grid {
        margin-top: 15px;
    }

    .scc-auth-feature-grid article {
        min-height: 72px;
        padding: 10px;
    }

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

    .scc-auth-card {
        padding-block: 25px;
    }

    .scc-auth-form,
    .scc-auth-page .auth-form,
    .scc-auth-page .customer-auth-form {
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .scc-auth-card-copy {
        margin-top: 9px;
    }

    .scc-auth-access-note,
    .scc-auth-form-footer {
        margin-top: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scc-auth-page *,
    .scc-auth-page *::before,
    .scc-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
