@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-on-primary: #ffffff;
    --auth-on-primary-dark: #ffffff;
    --auth-ink: #0b1220;
    --auth-identity: #0d1d35;
    --auth-muted: #5f6b7a;
    --auth-page: #f7f9fc;
    --auth-paper: #ffffff;
    --auth-rule: #d8e1ec;
    --auth-danger: #b42318;
    --auth-danger-soft: #fff3f2;
    --auth-success: #067647;
    --auth-success-soft: #ecfdf3;
    --auth-shadow: 0 34px 84px -46px rgba(11, 18, 32, 0.48), 0 14px 34px -26px rgba(11, 18, 32, 0.28);
}

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

html {
    min-width: 320px;
    background: var(--auth-page);
    color-scheme: light;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--auth-page);
    color: var(--auth-ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.auth-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vh, 3.5rem) 1rem;
}

.auth-shell {
    width: min(100%, 58rem);
    animation: auth-rise 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-folio {
    position: relative;
    isolation: isolate;
}

.auth-folio::before,
.auth-folio::after {
    content: "";
    position: absolute;
    z-index: -2;
    border: 1px solid var(--auth-rule);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.78);
    pointer-events: none;
}

.auth-folio::before {
    inset: 0.55rem -0.55rem -0.55rem 0.55rem;
    box-shadow: 0 20px 44px -34px rgba(11, 18, 32, 0.35);
}

.auth-folio::after {
    inset: 1.05rem -1.05rem -1.05rem 1.05rem;
    z-index: -3;
    border-color: rgba(216, 225, 236, 0.64);
    background: rgba(247, 249, 252, 0.82);
}

.auth-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.41fr) minmax(0, 0.59fr);
    min-height: 35.5rem;
    overflow: hidden;
    border: 1px solid rgba(216, 225, 236, 0.98);
    border-radius: 1.35rem;
    background: var(--auth-paper);
    box-shadow: var(--auth-shadow);
}

.auth-identity {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--auth-identity);
    color: #ffffff;
}

.auth-identity::before {
    content: "";
    position: absolute;
    top: 2.75rem;
    left: 0;
    width: 4px;
    height: 7.75rem;
    border-radius: 0 999px 999px 0;
    background: var(--auth-primary);
}

.auth-identity__inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 2.75rem 2.5rem 2.35rem;
}

.auth-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.9rem;
}

.auth-brand__mark {
    position: relative;
    display: flex;
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.72);
    transition: border-color 180ms ease, transform 180ms ease;
}

.auth-brand__mark img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-brand__initials {
    display: inline-flex;
    min-width: 2.3rem;
    min-height: 2.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--auth-primary) 13%, white);
    color: color-mix(in srgb, var(--auth-primary-dark) 82%, #0b1220);
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-brand__skeleton {
    display: none;
    width: 2.75rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    background: #dbe3ee;
    animation: auth-pulse 900ms ease-in-out infinite alternate;
}

.auth-brand__text {
    min-width: 0;
}

.auth-brand__label {
    margin: 0 0 0.28rem;
    color: #9fb0c8;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.auth-brand__name {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 1.12rem;
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.auth-identity__copy {
    margin-top: clamp(3.4rem, 8vh, 5.25rem);
}

.auth-identity__kicker {
    margin: 0 0 0.9rem;
    color: color-mix(in srgb, var(--auth-primary) 52%, white);
    font-size: 0.71rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.auth-identity__title {
    max-width: 17rem;
    margin: 0;
    color: #ffffff;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.auth-identity__description {
    max-width: 18rem;
    margin: 1.15rem 0 0;
    color: #b9c6d8;
    font-size: 0.88rem;
    line-height: 1.68;
}

.auth-docket {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 2.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-docket__item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.7rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #d7e0ec;
    font-size: 0.73rem;
    font-weight: 620;
    line-height: 1.25;
}

.auth-docket__item span {
    width: 0.35rem;
    height: 0.35rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--auth-primary) 64%, white);
}

.auth-identity__footer {
    margin-top: auto;
    padding-top: 2rem;
}

.auth-workspace-state {
    display: flex;
    align-items: flex-start;
    gap: 0.58rem;
    color: #aebdd0;
    font-size: 0.7rem;
    font-weight: 560;
    line-height: 1.45;
}

.auth-workspace-state__dot {
    width: 0.47rem;
    height: 0.47rem;
    flex: 0 0 auto;
    margin-top: 0.23rem;
    border: 1px solid #8fa1b9;
    border-radius: 999px;
    background: transparent;
}

.auth-card {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    border-left: 1px solid rgba(216, 225, 236, 0.98);
    background: var(--auth-paper);
}

.auth-card__content {
    width: 100%;
    padding: 3.25rem clamp(2.5rem, 5vw, 4.25rem);
}

.auth-heading {
    margin-bottom: 2rem;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: var(--auth-primary-dark);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    content: "";
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.auth-title {
    margin: 0;
    color: var(--auth-ink);
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.1rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.auth-subtitle {
    max-width: 24rem;
    margin: 0.65rem 0 0;
    color: var(--auth-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-alert svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.auth-alert--error {
    border-color: #fecdca;
    background: var(--auth-danger-soft);
    color: var(--auth-danger);
}

.auth-alert--success {
    border-color: #abefc6;
    background: var(--auth-success-soft);
    color: var(--auth-success);
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.auth-field {
    min-width: 0;
}

.auth-label {
    display: inline-block;
    margin: 0 0 0.5rem;
    color: #344054;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
}

.auth-control {
    position: relative;
}

.auth-input {
    display: block;
    width: 100%;
    height: 3.125rem;
    padding: 0 0.95rem;
    border: 1px solid #b9c5d4;
    border-radius: 0.72rem;
    outline: 0;
    background: var(--auth-paper);
    color: var(--auth-ink);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.auth-input::placeholder {
    color: #8b98a9;
    opacity: 1;
}

.auth-input:hover {
    border-color: #94a3b8;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary) 14%, transparent);
}

.auth-input[aria-invalid="true"] {
    border-color: #f04438;
}

.auth-input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12);
}

.auth-input--password {
    padding-right: 3.55rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0.6rem;
    outline: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.auth-password-toggle:hover {
    background: #f1f5f9;
    color: var(--auth-ink);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--auth-primary);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 18%, transparent);
    color: var(--auth-primary-dark);
}

.auth-password-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}

.auth-lookup-status {
    display: flex;
    min-height: 1.15rem;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.48rem 0 0;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 520;
    line-height: 1.45;
}

.auth-lookup-status__indicator {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    margin-top: 0.27rem;
    border: 1px solid #98a2b3;
    border-radius: 999px;
    background: #ffffff;
}

.auth-error {
    margin: 0.42rem 0 0;
    color: var(--auth-danger);
    font-size: 0.78rem;
    font-weight: 550;
    line-height: 1.45;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 3.125rem;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    outline: 0;
    background: var(--auth-primary);
    box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--auth-primary) 78%, #0b1220);
    color: var(--auth-on-primary);
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 720;
    line-height: 1.4;
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.auth-submit__icon {
    position: relative;
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.auth-submit__icon svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform 150ms ease;
}

.auth-submit:hover:not(:disabled) {
    background: var(--auth-primary-dark);
    color: var(--auth-on-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -19px color-mix(in srgb, var(--auth-primary-dark) 86%, #0b1220);
}

.auth-submit:hover:not(:disabled) .auth-submit__icon svg {
    transform: translateX(2px);
}

.auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--auth-primary-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--auth-paper), 0 0 0 7px color-mix(in srgb, var(--auth-primary) 35%, transparent);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.74;
}

.auth-spinner {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: auth-spin 700ms linear infinite;
}

.auth-footer {
    margin: 1.9rem 0 0;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.auth-footer__separator {
    margin: 0 0.35rem;
    color: #98a2b3;
}

body[data-brand-state="loading"] .auth-brand__mark img,
body[data-brand-state="loading"] .auth-brand__initials {
    display: none !important;
}

body[data-brand-state="loading"] .auth-brand__skeleton {
    display: block;
}

body[data-brand-state="loading"] .auth-workspace-state__dot,
body[data-brand-state="loading"] .auth-lookup-status__indicator {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
    animation: auth-pulse 700ms ease-in-out infinite alternate;
}

body[data-brand-state="resolved"] .auth-workspace-state__dot,
body[data-brand-state="resolved"] .auth-lookup-status__indicator {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
}

body[data-brand-state="resolved"] .auth-lookup-status {
    color: var(--auth-success);
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 1rem, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes auth-pulse {
    from {
        opacity: 0.46;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 47.99rem) {
    .auth-page {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .auth-shell {
        width: min(100%, 34rem);
    }

    .auth-frame {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .auth-identity__inner {
        padding: 1.65rem 2rem 1.55rem;
    }

    .auth-identity::before {
        top: 1.65rem;
        height: 4rem;
    }

    .auth-brand__mark {
        width: 3.35rem;
        height: 3.35rem;
        border-radius: 0.85rem;
    }

    .auth-identity__copy {
        margin-top: 1.65rem;
    }

    .auth-identity__title {
        max-width: 26rem;
        font-size: 1.65rem;
    }

    .auth-identity__description {
        max-width: 28rem;
        margin-top: 0.7rem;
        line-height: 1.55;
    }

    .auth-docket {
        display: none;
    }

    .auth-identity__footer {
        padding-top: 1.25rem;
    }

    .auth-workspace-state {
        max-width: 19rem;
    }

    .auth-card {
        border-top: 1px solid rgba(216, 225, 236, 0.98);
        border-left: 0;
    }

    .auth-card__content {
        padding: 2.25rem 2rem 2.5rem;
    }
}

@media (max-width: 34rem) {
    .auth-page {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .auth-folio::before {
        inset: 0.38rem -0.28rem -0.38rem 0.28rem;
    }

    .auth-folio::after {
        display: none;
    }

    .auth-identity__inner {
        padding: 1.4rem 1.5rem 1.35rem;
    }

    .auth-identity::before {
        top: 1.4rem;
        height: 3.75rem;
    }

    .auth-brand__mark {
        width: 3rem;
        height: 3rem;
    }

    .auth-brand__name {
        font-size: 1rem;
    }

    .auth-identity__copy {
        margin-top: 1.25rem;
    }

    .auth-identity__kicker {
        margin-bottom: 0.55rem;
    }

    .auth-identity__title {
        font-size: 1.45rem;
    }

    .auth-identity__description {
        font-size: 0.82rem;
    }

    .auth-identity__footer {
        display: block;
        padding-top: 1rem;
    }

    .auth-card__content {
        padding: 2rem 1.5rem 2.15rem;
    }

    .auth-heading {
        margin-bottom: 1.55rem;
    }

    .auth-form {
        gap: 1rem;
    }

    .auth-footer {
        margin-top: 1.35rem;
    }
}

@media (min-width: 48rem) and (max-height: 43rem) {
    .auth-page {
        align-items: flex-start;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .auth-frame {
        min-height: 32rem;
    }

    .auth-identity__inner {
        padding-top: 2rem;
        padding-bottom: 1.75rem;
    }

    .auth-identity::before {
        top: 2rem;
        height: 6.5rem;
    }

    .auth-identity__copy {
        margin-top: 2.35rem;
    }

    .auth-docket {
        margin-top: 1.5rem;
    }

    .auth-identity__footer {
        padding-top: 1.25rem;
    }

    .auth-card__content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .auth-heading {
        margin-bottom: 1.35rem;
    }

    .auth-form {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell,
    .auth-spinner,
    .auth-brand__skeleton,
    .auth-workspace-state__dot,
    .auth-lookup-status__indicator {
        animation: none;
    }

    .auth-input,
    .auth-brand__mark,
    .auth-password-toggle,
    .auth-submit,
    .auth-submit__icon svg {
        transition: none;
    }

    .auth-submit:hover:not(:disabled),
    .auth-submit:hover:not(:disabled) .auth-submit__icon svg {
        transform: none;
    }
}
