:root {
    --auth-bg: #071f3b;
    --auth-bg-deep: #061a31;
    --auth-bg-soft: #0a2c50;
    --auth-panel: #ffffff;
    --auth-panel-soft: #f7fbff;
    --auth-text: #10213d;
    --auth-muted: #6f819d;
    --auth-line: #dce7f2;
    --auth-accent: #29c7e8;
    --auth-accent-strong: #16aeca;
    --auth-success: #22d17f;
    --auth-danger: #d6455d;
    --auth-shadow: 0 24px 60px rgba(0, 10, 28, 0.28);
    --auth-radius-lg: 24px;
    --auth-radius-md: 16px;
    --auth-radius-sm: 11px;
}

* {
    box-sizing: border-box;
}

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

html {
    background: var(--auth-bg);
}

body.auth-body {
    margin: 0;
    min-width: 320px;
    min-height: 100svh;
    overflow-x: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(41, 199, 232, 0.10), transparent 30%),
        radial-gradient(circle at 88% 70%, rgba(16, 132, 219, 0.12), transparent 34%),
        linear-gradient(135deg, var(--auth-bg-deep) 0%, var(--auth-bg) 54%, #08284a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.auth-page {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.auth-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%);
}

.auth-background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.55;
}

.auth-background-orb-one {
    width: 520px;
    height: 520px;
    top: -220px;
    left: -160px;
    background: radial-gradient(circle, rgba(41, 199, 232, 0.16), transparent 68%);
}

.auth-background-orb-two {
    width: 600px;
    height: 600px;
    right: -180px;
    bottom: -280px;
    background: radial-gradient(circle, rgba(26, 121, 209, 0.18), transparent 70%);
}

.auth-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(24px, 3.5vw, 58px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 25, 48, 0.58);
    backdrop-filter: blur(14px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
}

.auth-brand-mark > i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 48px;
    color: var(--auth-accent);
    line-height: 1;
}

.auth-brand-letter {
    position: relative;
    z-index: 1;
    color: #06213c;
    font-size: 15px;
    font-weight: 900;
}

.auth-brand-copy {
    display: grid;
    line-height: 1.05;
}

.auth-brand-copy strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-brand-copy small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-header-security {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 700;
}

.auth-security-indicator {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(41, 199, 232, 0.22);
    border-radius: 10px;
    color: var(--auth-success);
    background: rgba(41, 199, 232, 0.08);
}

.auth-main {
    min-height: 0;
    display: flex;
    align-items: center;
    padding: clamp(26px, 3.5vh, 46px) clamp(24px, 5vw, 88px);
}

.auth-stage {
    width: min(1340px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.82fr);
    align-items: center;
    gap: clamp(42px, 6vw, 96px);
}

.auth-introduction {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: center;
    gap: 34px;
}

.auth-introduction-content {
    min-width: 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #75e6fb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-introduction h1 {
    max-width: 660px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 4.8vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.055em;
    font-weight: 850;
}

.auth-introduction-content > p {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
}

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

.auth-feature {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(41, 199, 232, 0.20);
    border-radius: 11px;
    color: #66e1f7;
    background: rgba(41, 199, 232, 0.08);
    font-size: 16px;
}

.auth-feature-copy {
    min-width: 0;
    display: block;
}

.auth-feature-copy strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.auth-feature-copy small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    line-height: 1.45;
}

.auth-introduction-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-platform-visual {
    position: relative;
    width: 250px;
    height: 250px;
}

.auth-visual-ring {
    position: absolute;
    border: 1px solid rgba(41, 199, 232, 0.22);
    border-radius: 50%;
}

.auth-visual-ring-one {
    inset: 20px;
}

.auth-visual-ring-two {
    inset: 58px;
    border-color: rgba(41, 199, 232, 0.28);
}

.auth-visual-core,
.auth-visual-node {
    position: absolute;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(0, 10, 28, 0.28);
}

.auth-visual-core {
    inset: 50%;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
}

.auth-visual-core > i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--auth-accent);
    font-size: 82px;
    line-height: 1;
}

.auth-visual-core > strong {
    position: relative;
    z-index: 1;
    color: #06213c;
    font-size: 24px;
    font-weight: 900;
}

.auth-visual-node {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(41, 199, 232, 0.22);
    border-radius: 14px;
    color: #62def6;
    background: rgba(9, 48, 84, 0.92);
    font-size: 19px;
}

.auth-visual-node::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(6, 31, 57, 0.9);
    border-radius: 50%;
    background: var(--auth-success);
    box-shadow: 0 0 10px rgba(34, 209, 127, 0.8);
}

.auth-visual-node-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.auth-visual-node-top::after {
    top: -5px;
    right: -4px;
}

.auth-visual-node-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.auth-visual-node-right::after {
    top: -5px;
    right: -4px;
}

.auth-visual-node-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.auth-visual-node-bottom::after {
    right: -4px;
    bottom: -5px;
}

.auth-visual-node-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.auth-visual-node-left::after {
    left: -4px;
    bottom: -5px;
}

.auth-content-column {
    width: 100%;
    max-width: 520px;
    justify-self: end;
}

.auth-content-shell {
    position: relative;
}

.auth-content-shell::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px;
    z-index: -1;
    border: 1px solid rgba(41, 199, 232, 0.16);
    border-radius: 28px;
}

.auth-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--auth-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, var(--auth-panel-soft) 100%);
    color: var(--auth-text);
    box-shadow: var(--auth-shadow);
}

.auth-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #0d355f 0%, var(--auth-accent) 58%, #92ecf8 100%);
}

.auth-card-header {
    padding: 30px 34px 16px;
}

.auth-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid #ccecf4;
    border-radius: 14px;
    color: #103960;
    background: #f4fcff;
    font-size: 18px;
}

.auth-card-heading {
    margin: 0;
    color: #0d1d37;
    font-size: clamp(28px, 2.2vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 850;
}

.auth-card-description {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-card-body {
    padding: 14px 34px 28px;
}

.auth-form-group + .auth-form-group {
    margin-top: 18px;
}

.auth-form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.auth-form-label {
    margin: 0;
    color: #1a2d4b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    transform: translateY(-50%);
    color: #92a6c1;
    font-size: 16px;
    pointer-events: none;
}

.auth-input-wrapper .form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 48px 12px 44px;
    border: 1px solid #d9e4ef;
    border-radius: var(--auth-radius-sm);
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-input-wrapper .form-control::placeholder {
    color: #9aaac0;
}

.auth-input-wrapper .form-control:focus {
    border-color: #70dced;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(41, 199, 232, 0.12);
    outline: none;
}

.auth-input-action {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    color: #8ca0ba;
    background: transparent;
    cursor: pointer;
}

.auth-input-action:hover,
.auth-input-action:focus-visible {
    color: #123b64;
    background: #edf8fc;
    outline: none;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #657891;
    font-size: 12px;
    cursor: pointer;
}

.auth-checkbox .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    border-color: #ccd9e6;
    box-shadow: none;
}

.auth-checkbox .form-check-input:checked {
    border-color: var(--auth-accent-strong);
    background-color: var(--auth-accent-strong);
}

.auth-text-link {
    color: #17456f;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.auth-text-link:hover {
    color: #0d3359;
    text-decoration: underline;
}

.auth-submit-button {
    position: relative;
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #123e6d 0%, #0d3157 100%);
    box-shadow: 0 12px 24px rgba(9, 43, 78, 0.22);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.auth-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(9, 43, 78, 0.28);
    filter: brightness(1.05);
}

.auth-submit-button:focus-visible {
    outline: 3px solid rgba(41, 199, 232, 0.30);
    outline-offset: 3px;
}

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

.auth-submit-button-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: auth-spin 700ms linear infinite;
}

.auth-submit-button.is-loading .auth-submit-button-spinner {
    display: inline-block;
}

.auth-submit-button.is-loading .auth-submit-button-icon {
    display: none;
}

.auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 17px 24px;
    border-top: 1px solid #e7eef5;
    color: #91a1b6;
    background: rgba(248, 251, 254, 0.88);
    font-size: 12px;
}

.auth-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 13px;
}

.auth-alert-danger {
    border: 1px solid rgba(214, 69, 93, 0.22);
    color: #8e263a;
    background: #fff4f6;
}

.auth-alert-content strong {
    display: block;
    margin-bottom: 2px;
}

.auth-trust-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
}

.auth-footer {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(24px, 3.5vw, 58px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.47);
    font-size: 11px;
}

.auth-footer-platform {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.auth-footer-platform strong {
    color: #77e5f8;
}

.auth-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-footer-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-success);
    box-shadow: 0 0 10px rgba(34, 209, 127, 0.7);
}

.auth-footer-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
}

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

/* Keep the full page within common 1080p laptop and desktop heights. */
@media (min-width: 1100px) and (max-height: 900px) {
    .auth-header {
        min-height: 70px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .auth-brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .auth-brand-mark > i {
        font-size: 42px;
    }

    .auth-main {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .auth-stage {
        gap: 56px;
    }

    .auth-introduction {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 24px;
    }

    .auth-introduction h1 {
        font-size: clamp(48px, 4.2vw, 66px);
    }

    .auth-introduction-content > p {
        margin-top: 18px;
        font-size: 16px;
    }

    .auth-feature-list {
        margin-top: 22px;
    }

    .auth-feature {
        min-height: 96px;
        padding: 13px;
    }

    .auth-feature-copy small {
        font-size: 10px;
        line-height: 1.4;
    }

    .auth-platform-visual {
        width: 220px;
        height: 220px;
    }

    .auth-visual-core {
        width: 74px;
        height: 74px;
    }

    .auth-visual-core > i {
        font-size: 74px;
    }

    .auth-card-header {
        padding: 25px 30px 12px;
    }

    .auth-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 15px;
    }

    .auth-card-body {
        padding: 10px 30px 23px;
    }

    .auth-form-group + .auth-form-group {
        margin-top: 14px;
    }

    .auth-input-wrapper .form-control {
        min-height: 46px;
    }

    .auth-submit-button {
        min-height: 46px;
        margin-top: 18px;
    }

    .auth-card-footer {
        padding: 14px 20px;
    }

    .auth-footer {
        min-height: 48px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 1199.98px) {
    .auth-stage {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
        gap: 44px;
    }

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

    .auth-introduction-decoration {
        display: none;
    }

    .auth-introduction h1 {
        font-size: clamp(48px, 6vw, 68px);
    }
}

@media (max-width: 991.98px) {
    body.auth-body {
        overflow-y: auto;
    }

    .auth-page {
        overflow: visible;
    }

    .auth-main {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .auth-stage {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .auth-introduction {
        text-align: center;
    }

    .auth-introduction h1,
    .auth-introduction-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-eyebrow {
        justify-content: center;
    }

    .auth-feature-list {
        text-align: left;
    }

    .auth-content-column {
        max-width: 560px;
        justify-self: center;
    }
}

@media (max-width: 767.98px) {
    .auth-header {
        min-height: 72px;
        padding: 14px 20px;
    }

    .auth-header-security {
        font-size: 0;
    }

    .auth-main {
        padding: 34px 18px;
    }

    .auth-introduction h1 {
        font-size: clamp(42px, 12vw, 60px);
    }

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

    .auth-feature {
        min-height: 0;
    }

    .auth-card-header,
    .auth-card-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .auth-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 18px 20px;
    }

    .auth-footer-platform {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 479.98px) {
    .auth-brand-copy strong {
        font-size: 16px;
    }

    .auth-brand-copy small {
        font-size: 9px;
    }

    .auth-introduction h1 {
        font-size: 40px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-content-shell::before {
        display: none;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-card-header {
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}