:root {
    --auth-ink: #101828;
    --auth-muted: #667085;
    --auth-border: #d9e2f0;
    --auth-blue: #135bdf;
    --auth-blue-dark: #0d45b3;
    --auth-cyan: #00c8ef;
    --auth-violet: #9b24f2;
    --auth-soft-canvas:
        radial-gradient(circle at 15% 15%, rgba(0, 200, 239, .16), transparent 27%),
        radial-gradient(circle at 85% 85%, rgba(155, 36, 242, .13), transparent 28%),
        #f5f8fd;
}

* {
    box-sizing: border-box;
}

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

.nexo-auth-body {
    min-height: 100vh;
    color: var(--auth-ink);
    background: #f5f8fd;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nexo-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(480px, 56%);
}

.nexo-auth-brand-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 48px;
    overflow: hidden;
    color: var(--auth-ink);
    background: var(--auth-soft-canvas);
    border-right: 1px solid rgba(19, 91, 223, .1);
}

.nexo-auth-brand-panel::before,
.nexo-auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(19, 91, 223, .1);
    border-radius: 50%;
}

.nexo-auth-brand-panel::before {
    top: -120px;
    left: -100px;
}

.nexo-auth-brand-panel::after {
    right: -150px;
    bottom: -115px;
    width: 390px;
    height: 390px;
}

.nexo-auth-brand-content {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    text-align: center;
}

.nexo-auth-logo {
    display: block;
    width: min(100%, 360px);
    margin: 0 auto 30px;
    border-radius: 32px;
    filter: drop-shadow(0 22px 38px rgba(39, 92, 168, .18));
}

.nexo-auth-eyebrow,
.nexo-auth-product {
    display: inline-block;
    color: #2374eb;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nexo-auth-brand-copy .nexo-auth-eyebrow {
    color: #087ea4;
}

.nexo-auth-brand-copy h1 {
    max-width: 480px;
    margin: 13px auto 14px;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.nexo-auth-brand-copy p {
    max-width: 470px;
    margin: 0 auto;
    color: #52627a;
    font-size: 1rem;
    line-height: 1.65;
}

.nexo-auth-form-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 48px clamp(28px, 7vw, 110px);
    background: #ffffff;
}

.nexo-auth-card {
    width: min(100%, 460px);
}

.nexo-auth-mobile-brand {
    display: none;
}

.nexo-auth-heading {
    margin-bottom: 30px;
}

.nexo-auth-heading h2 {
    margin: 10px 0 8px;
    color: var(--auth-ink);
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 760;
    letter-spacing: -.035em;
}

.nexo-auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 1rem;
}

.nexo-auth-form {
    display: grid;
    gap: 20px;
}

.nexo-auth-field {
    display: grid;
    gap: 8px;
}

.nexo-auth-field label {
    color: #344054;
    font-size: .88rem;
    font-weight: 700;
}

.nexo-auth-input-wrap {
    min-height: 52px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.nexo-auth-input-wrap:focus-within {
    border-color: #6fa4f7;
    box-shadow: 0 0 0 4px rgba(19, 91, 223, .1);
}

.nexo-auth-input-wrap > span {
    color: #7a8ba8;
    font-size: .86rem;
    font-weight: 800;
}

.nexo-auth-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--auth-ink);
    background: transparent;
    font-size: .96rem;
}

.nexo-auth-input-wrap input::placeholder {
    color: #98a2b3;
}

.nexo-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #475467;
    font-size: .9rem;
    cursor: pointer;
}

.nexo-auth-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--auth-blue);
}

.nexo-auth-submit,
.nexo-auth-secondary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border-radius: 13px;
    font-size: .94rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease,
        background .15s ease;
}

.nexo-auth-submit {
    width: 100%;
    border: 0;
    color: #ffffff;
    background: var(--auth-blue);
    box-shadow: 0 10px 24px rgba(19, 91, 223, .22);
}

.nexo-auth-submit:hover {
    color: #ffffff;
    background: var(--auth-blue-dark);
    box-shadow: 0 13px 28px rgba(19, 91, 223, .27);
    transform: translateY(-1px);
}

.nexo-auth-submit:focus-visible,
.nexo-auth-secondary:focus-visible {
    outline: 3px solid rgba(0, 200, 239, .42);
    outline-offset: 3px;
}

.nexo-auth-secondary {
    border: 1px solid var(--auth-border);
    color: #344054;
    background: #ffffff;
}

.nexo-auth-secondary:hover {
    color: var(--auth-blue);
    border-color: #9dbdf1;
    background: #f7faff;
}

.nexo-auth-alert:empty,
.nexo-auth-validation:empty {
    display: none;
}

.nexo-auth-alert {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #991b1b;
    background: #fef2f2;
    font-size: .88rem;
}

.nexo-auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.nexo-auth-validation {
    color: #b42318;
    font-size: .8rem;
}

.nexo-auth-support {
    display: grid;
    gap: 3px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eaecf0;
    color: var(--auth-muted);
    font-size: .82rem;
}

.nexo-auth-support strong {
    color: #344054;
    font-weight: 700;
}

.nexo-logout-body {
    display: grid;
    place-items: center;
    padding: 26px;
    background: var(--auth-soft-canvas);
}

.nexo-logout-shell {
    width: min(100%, 540px);
}

.nexo-logout-card {
    padding: clamp(30px, 6vw, 54px);
    border: 1px solid rgba(217, 226, 240, .92);
    border-radius: 26px;
    text-align: center;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 70px rgba(31, 52, 89, .13);
}

.nexo-logout-logo {
    display: block;
    width: 150px;
    margin: 0 auto 22px;
    border-radius: 22px;
}

.nexo-logout-card h1 {
    margin: 12px 0 10px;
    font-size: clamp(1.7rem, 5vw, 2.25rem);
    font-weight: 760;
    letter-spacing: -.035em;
}

.nexo-logout-card > p {
    max-width: 410px;
    margin: 0 auto 30px;
    color: var(--auth-muted);
    line-height: 1.6;
}

.nexo-logout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nexo-logout-actions form,
.nexo-logout-actions .nexo-auth-submit {
    width: 100%;
}

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

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

    .nexo-auth-form-panel {
        min-height: 100vh;
        padding: 32px 22px;
    }

    .nexo-auth-mobile-brand {
        display: block;
        margin-bottom: 26px;
    }

    .nexo-auth-mobile-brand img {
        display: block;
        width: 112px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .nexo-auth-form-panel {
        align-items: start;
        padding-top: 24px;
    }

    .nexo-auth-heading {
        margin-bottom: 24px;
    }

    .nexo-logout-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
