:root {
    --login-navy-950: #061522;
    --login-navy-900: #071b2e;
    --login-navy-800: #0d2a40;
    --login-emerald-500: #13b981;
    --login-emerald-400: #2dd4a3;
    --login-emerald-100: #d9f8ed;
    --login-white: #ffffff;
    --login-soft: #f3f7f7;
    --login-line: #d8e2e7;
    --login-ink: #10283b;
    --login-muted: #607382;
    --login-danger: #c33838;
    --login-danger-soft: #fff1f1;
    --login-success: #087d5a;
    --login-success-soft: #e7f8f2;
    --login-shadow: 0 28px 70px rgba(6, 21, 34, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--login-soft);
}

body.swift-login-page {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--login-soft);
    color: var(--login-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.swift-login-page img,
.swift-login-page svg {
    display: block;
    max-width: 100%;
}

.swift-login-page a {
    color: inherit;
}

.swift-login-page button,
.swift-login-page input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    width: min(1240px, calc(100% - 48px));
    min-height: min(760px, calc(100dvh - 48px));
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid rgba(7, 27, 46, 0.1);
    border-radius: 8px;
    background: var(--login-white);
    box-shadow: var(--login-shadow);
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    background: var(--login-navy-950);
    color: var(--login-white);
}

.login-brand-link {
    position: relative;
    z-index: 3;
    display: inline-flex;
    width: fit-content;
}

.login-brand-link img {
    width: 238px;
    height: auto;
}

.login-brand-content {
    position: relative;
    z-index: 3;
    max-width: 510px;
    padding-block: 55px;
}

.login-brand-kicker,
.login-heading > span {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--login-emerald-400);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.login-brand-content h1 {
    max-width: 500px;
    margin: 0;
    color: var(--login-white);
    font-size: 3.25rem;
    font-weight: 820;
    line-height: 1.06;
}

.login-brand-content > p {
    max-width: 500px;
    margin: 1.25rem 0 0;
    color: #abc0cb;
    font-size: 1rem;
    line-height: 1.75;
}

.login-signal-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}

.login-signal-list span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #c4d3da;
    font-size: 0.86rem;
    font-weight: 700;
}

.login-signal-list i {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid rgba(45, 212, 163, 0.35);
    border-radius: 50%;
    background: rgba(45, 212, 163, 0.1);
}

.login-signal-list i::after {
    position: absolute;
    top: 4px;
    left: 7px;
    width: 4px;
    height: 7px;
    border-right: 2px solid var(--login-emerald-400);
    border-bottom: 2px solid var(--login-emerald-400);
    content: "";
    transform: rotate(45deg);
}

.login-brand-footer {
    position: relative;
    z-index: 3;
    margin: 0;
    color: #708b99;
    font-size: 0.76rem;
    font-weight: 700;
}

.login-network-visual {
    position: absolute;
    right: -120px;
    bottom: -125px;
    width: 450px;
    height: 450px;
    opacity: 0.65;
}

.login-network-ring {
    position: absolute;
    border: 1px solid rgba(45, 212, 163, 0.16);
    border-radius: 50%;
}

.login-network-ring.ring-one {
    inset: 30px;
}

.login-network-ring.ring-two {
    inset: 105px;
}

.login-network-node {
    position: absolute;
    z-index: 2;
    width: 12px;
    height: 12px;
    border: 3px solid var(--login-navy-950);
    border-radius: 50%;
    background: var(--login-emerald-400);
    box-shadow: 0 0 0 5px rgba(45, 212, 163, 0.1);
}

.login-network-node.node-one {
    top: 72px;
    left: 118px;
}

.login-network-node.node-two {
    top: 205px;
    left: 43px;
}

.login-network-node.node-three {
    top: 260px;
    left: 265px;
}

.login-network-line {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: rgba(45, 212, 163, 0.25);
}

.login-network-line.line-one {
    top: 78px;
    left: 124px;
    width: 165px;
    transform: rotate(52deg);
}

.login-network-line.line-two {
    top: 210px;
    left: 49px;
    width: 225px;
    transform: rotate(15deg);
}

.login-form-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 48px;
    background: var(--login-white);
}

.login-form-wrap {
    width: min(100%, 440px);
}

.login-mobile-logo {
    display: none;
}

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

.login-heading h2 {
    margin: 0;
    color: var(--login-navy-900);
    font-size: 2.65rem;
    font-weight: 820;
    line-height: 1.08;
}

.login-heading p {
    margin: 0.8rem 0 0;
    color: var(--login-muted);
    line-height: 1.7;
}

.login-alert {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.86rem;
    font-weight: 650;
}

.login-alert svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.login-form {
    display: grid;
    gap: 1.2rem;
}

.login-field {
    display: grid;
    gap: 0.45rem;
}

.login-field label,
.login-label-row label {
    color: var(--login-navy-900);
    font-size: 0.86rem;
    font-weight: 800;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-label-row a {
    color: #087d5a;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.login-label-row a:hover,
.login-label-row a:focus-visible {
    text-decoration: underline;
}

.login-input-wrap {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}

.login-input-wrap > svg {
    position: absolute;
    left: 0.9rem;
    z-index: 1;
    width: 19px;
    fill: none;
    stroke: #718793;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0.82rem 0.95rem 0.82rem 2.8rem;
    border: 1px solid #c8d5db;
    border-radius: 7px;
    outline: none;
    background: var(--login-white);
    color: var(--login-ink);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.login-password-wrap input {
    padding-right: 3.2rem;
}

.login-input-wrap input:hover {
    border-color: #9bb0bb;
}

.login-input-wrap input:focus {
    border-color: var(--login-emerald-500);
    box-shadow: 0 0 0 4px rgba(19, 185, 129, 0.13);
}

.login-input-wrap.has-error input {
    border-color: var(--login-danger);
    background: #fffafa;
}

.login-input-wrap.has-error input:focus {
    box-shadow: 0 0 0 4px rgba(195, 56, 56, 0.12);
}

.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--login-ink);
    box-shadow: 0 0 0 1000px var(--login-white) inset;
    transition: background-color 9999s ease-out;
}

.login-password-toggle {
    position: absolute;
    right: 0.45rem;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #617682;
    cursor: pointer;
}

.login-password-toggle:hover {
    background: var(--login-soft);
    color: var(--login-navy-900);
}

.login-password-toggle svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-password-toggle .login-eye-closed {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .login-eye-open {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .login-eye-closed {
    display: block;
}

.login-field-error {
    display: flex;
    align-items: start;
    gap: 0.4rem;
    color: var(--login-danger);
    font-size: 0.78rem;
    font-weight: 700;
}

.login-field-error::before {
    width: 6px;
    height: 6px;
    margin-top: 0.42rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--login-danger);
    content: "";
}

.login-remember {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    gap: 0.55rem;
    color: var(--login-muted);
    cursor: pointer;
    font-size: 0.82rem;
}

.login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.login-remember > span {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    border: 1px solid #aebfc7;
    border-radius: 5px;
    background: var(--login-white);
}

.login-remember input:checked + span {
    border-color: var(--login-emerald-500);
    background: var(--login-emerald-500);
}

.login-remember input:checked + span::after {
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border-right: 2px solid var(--login-white);
    border-bottom: 2px solid var(--login-white);
    content: "";
    transform: rotate(45deg);
}

.login-remember input:focus-visible + span {
    outline: 3px solid rgba(19, 185, 129, 0.25);
    outline-offset: 2px;
}

.login-remember strong {
    font-weight: 700;
}

.login-submit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--login-navy-900);
    border-radius: 7px;
    background: var(--login-navy-900);
    color: var(--login-white);
    font-weight: 820;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.login-submit:hover:not(:disabled) {
    border-color: var(--login-emerald-500);
    background: var(--login-emerald-500);
    color: var(--login-navy-950);
    transform: translateY(-1px);
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.login-submit svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--login-line);
    font-size: 0.84rem;
    text-align: center;
}

.login-secondary-actions p {
    margin: 0;
    color: var(--login-muted);
}

.login-secondary-actions a {
    color: #087d5a;
    font-weight: 820;
    text-decoration: none;
}

.login-secondary-actions a:hover,
.login-secondary-actions a:focus-visible {
    text-decoration: underline;
}

.login-return-link {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1rem auto 0;
    color: var(--login-muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.login-return-link:hover,
.login-return-link:focus-visible {
    color: var(--login-navy-900);
}

.login-return-link svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swift-login-page :focus-visible {
    outline: 3px solid rgba(19, 185, 129, 0.28);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: minmax(300px, 0.7fr) minmax(450px, 1fr);
        width: min(100% - 28px, 920px);
        margin-block: 14px;
    }

    .login-brand-panel {
        padding: 34px;
    }

    .login-brand-content h1 {
        font-size: 2.65rem;
    }

    .login-form-panel {
        padding: 40px;
    }
}

@media (max-width: 820px) {
    .login-shell {
        display: block;
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-panel {
        min-height: 235px;
        padding: 28px;
    }

    .login-brand-link {
        display: none;
    }

    .login-brand-content {
        max-width: 620px;
        padding-block: 0;
    }

    .login-brand-content h1 {
        max-width: 600px;
        font-size: 2.35rem;
    }

    .login-brand-content > p {
        margin-top: 0.8rem;
    }

    .login-signal-list,
    .login-brand-footer {
        display: none;
    }

    .login-network-visual {
        right: -180px;
        bottom: -245px;
    }

    .login-form-panel {
        min-height: calc(100dvh - 235px);
        padding: 38px 28px 46px;
    }

    .login-form-wrap {
        max-width: 500px;
    }

    .login-mobile-logo {
        display: inline-flex;
        width: fit-content;
        margin-bottom: 2rem;
    }

    .login-mobile-logo img {
        width: 218px;
    }
}

@media (max-width: 480px) {
    .login-brand-panel {
        min-height: 215px;
        padding: 24px 20px;
    }

    .login-brand-kicker {
        margin-bottom: 0.55rem;
    }

    .login-brand-content h1 {
        font-size: 2rem;
    }

    .login-brand-content > p {
        display: none;
    }

    .login-form-panel {
        min-height: calc(100dvh - 215px);
        padding: 30px 20px 40px;
    }

    .login-mobile-logo {
        margin-bottom: 1.5rem;
    }

    .login-mobile-logo img {
        width: 200px;
    }

    .login-heading {
        margin-bottom: 1.5rem;
    }

    .login-heading h2 {
        font-size: 2.3rem;
    }

    .login-label-row {
        align-items: flex-start;
    }

    .login-secondary-actions {
        align-items: center;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swift-login-page *,
    .swift-login-page *::before,
    .swift-login-page *::after {
        transition-duration: 0.01ms !important;
    }
}
