/* Login experience */
.auth-page {
    --auth-ink: #20242b;
    --auth-muted: #737983;
    --auth-purple: #6759e8;
    --auth-green: #b9f4ad;
    min-height: 100svh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    color: var(--auth-ink);
    background: #eef0f5;
    font-family: 'DM Sans', sans-serif;
}

.auth-shell {
    width: min(1320px, 100%);
    min-height: min(820px, calc(100svh - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(36, 39, 58, .14);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 58px 64px 32px;
    color: #fff;
    background: #28283a;
    isolation: isolate;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    position: absolute;
    z-index: -1;
    content: '';
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-panel::before {
    width: 520px;
    height: 520px;
    top: -240px;
    right: -220px;
    border: 1px solid rgba(185, 244, 173, .2);
}

.auth-brand-panel::after {
    width: 680px;
    height: 680px;
    bottom: -420px;
    left: -250px;
    background: rgba(102, 89, 232, .18);
    filter: blur(10px);
}

.auth-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: inherit;
    font: 700 22px 'Space Grotesk', sans-serif;
    letter-spacing: -.7px;
    text-decoration: none;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #26283b;
    background: var(--auth-green);
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    transform: rotate(-8deg);
}

.auth-brand-dot { color: var(--auth-green); }

.auth-brand-copy {
    max-width: 510px;
    margin-top: clamp(72px, 12vh, 140px);
}

.auth-kicker {
    margin: 0 0 18px;
    color: #9189f5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.auth-brand-copy h1 {
    margin: 0;
    color: #fff;
    font: 600 clamp(38px, 4.3vw, 68px)/1.03 'Space Grotesk', sans-serif;
    letter-spacing: -2.8px;
}

.auth-brand-copy h1 em {
    color: var(--auth-green);
    font-style: normal;
}

.auth-brand-copy > p:last-child {
    max-width: 430px;
    margin: 24px 0 0;
    color: #b5b6c3;
    font-size: 15px;
    line-height: 1.7;
}

.auth-visual {
    position: relative;
    flex: 1;
    min-height: 240px;
    margin: 28px -5px 0;
}

.visual-glow {
    position: absolute;
    width: 290px;
    height: 190px;
    top: 28px;
    left: 25%;
    border-radius: 50%;
    background: rgba(185, 244, 173, .18);
    filter: blur(42px);
}

.visual-orbit {
    position: absolute;
    left: 14%;
    top: 26px;
    width: min(360px, 70%);
    aspect-ratio: 1.75;
    border: 1px solid rgba(185, 244, 173, .34);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.visual-orbit-two {
    left: 20%;
    top: 4px;
    width: min(360px, 70%);
    transform: rotate(36deg);
    border-color: rgba(143, 137, 245, .38);
}

.visual-node {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    color: #28283a;
    background: var(--auth-green);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    font-size: 19px;
}

.node-one { top: 24px; left: 11%; }
.node-two { top: 112px; right: 10%; color: #fff; background: #6e62e9; }
.node-three { bottom: 12px; left: 28%; color: #28283a; background: #f7c77c; }

.visual-window {
    position: absolute;
    right: 7%;
    bottom: 14px;
    width: min(390px, 68%);
    min-width: 245px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: rgba(44, 45, 62, .87);
    box-shadow: 0 22px 36px rgba(11, 12, 24, .25);
    transform: rotate(-3deg);
}

.visual-window-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #888a9d;
    font-size: 8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.visual-window-bar i { width: 5px; height: 5px; border-radius: 50%; background: #ee7b82; }
.visual-window-bar i:nth-child(2) { background: #f7c77c; }
.visual-window-bar i:nth-child(3) { background: var(--auth-green); }
.visual-window-bar span { margin-left: 7px; }

.visual-window-body {
    display: flex;
    align-items: end;
    gap: 12px;
    min-height: 112px;
    padding: 20px;
}

.visual-chart {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 62px;
    flex: 1;
}

.visual-chart b { display: block; width: 15%; height: 38%; border-radius: 4px 4px 2px 2px; background: #8076ef; }
.visual-chart b:nth-child(2) { height: 65%; background: #9c95f4; }
.visual-chart b:nth-child(3) { height: 48%; }
.visual-chart b:nth-child(4) { height: 84%; background: var(--auth-green); }
.visual-chart b:nth-child(5) { height: 100%; background: #f7c77c; }

.visual-stat { min-width: 52px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
.visual-stat strong, .visual-stat small { display: block; }
.visual-stat strong { color: var(--auth-green); font: 600 22px 'Space Grotesk', sans-serif; }
.visual-stat small { margin-top: 3px; color: #9799a8; font-size: 8px; }
.visual-stat.secondary strong { color: #f7c77c; }

.auth-brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #858797;
    font-size: 10px;
}

.auth-form-panel {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 56px clamp(34px, 6vw, 88px);
    background: #fff;
}

.auth-form-wrap { width: min(100%, 430px); }
.auth-mobile-brand { display: none; color: var(--auth-ink); margin-bottom: 50px; }
.auth-form-panel .auth-kicker { margin-bottom: 14px; color: var(--auth-purple); }
.auth-form-panel h2 { margin: 0; font: 600 clamp(29px, 3vw, 40px)/1.1 'Space Grotesk', sans-serif; letter-spacing: -1.5px; }
.auth-subtitle { margin: 13px 0 34px; color: var(--auth-muted); font-size: 14px; }

.auth-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #ded9ff;
    border-radius: 8px;
    color: #5044bf;
    background: #f7f5ff;
    font-size: 12px;
}

.auth-field { margin-bottom: 20px; }
.auth-field > label { display: block; margin: 0 0 8px; color: #4b4d57; font-size: 12px; font-weight: 700; }
.auth-field input:not([type='checkbox']) {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #dfe1e7;
    border-radius: 9px;
    outline: 0;
    color: var(--auth-ink);
    background: #fbfbfc;
    font: inherit;
    font-size: 14px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-field input:not([type='checkbox'])::placeholder { color: #a1a5ae; }
.auth-field input:not([type='checkbox']):focus { border-color: var(--auth-purple); background: #fff; box-shadow: 0 0 0 4px rgba(103, 89, 232, .12); }
.auth-field input[aria-invalid='true'] { border-color: #d85867; }
.auth-password-control { position: relative; }
.auth-password-control input { padding-right: 52px !important; }
.password-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; color: #858995; background: transparent; cursor: pointer; }
.password-toggle:focus-visible { outline: 2px solid var(--auth-purple); outline-offset: -4px; border-radius: 8px; }
.password-eye { position: relative; display: block; width: 19px; height: 12px; border: 1.7px solid currentColor; border-radius: 75% 15%; transform: rotate(45deg); }
.password-eye::after { position: absolute; top: 3px; left: 6px; width: 4px; height: 4px; content: ''; border-radius: 50%; background: currentColor; }
.auth-error { display: block; min-height: 16px; margin-top: 6px; color: #c84958; font-size: 11px; }
.auth-summary { margin: 0 0 15px; color: #c84958; font-size: 12px; }
.auth-summary:empty { display: none; }
.auth-summary ul { margin: 0; padding-left: 18px; }

.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 2px 0 27px; }
.remember-option { position: relative; display: inline-flex; align-items: center; gap: 9px; color: #626570; font-size: 12px; cursor: pointer; }
.remember-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-checkbox { width: 17px; height: 17px; border: 1px solid #c9ccd5; border-radius: 4px; background: #fff; }
.remember-option input:checked + .custom-checkbox { border-color: var(--auth-purple); background: var(--auth-purple); box-shadow: inset 0 0 0 4px #fff; }
.remember-option input:focus-visible + .custom-checkbox { outline: 2px solid rgba(103, 89, 232, .45); outline-offset: 2px; }
.auth-link { color: var(--auth-purple); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-link:hover, .auth-register a:hover { text-decoration: underline; }

.auth-submit,
.auth-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    border-radius: 9px;
    font: 700 13px 'DM Sans', sans-serif;
    transition: transform .18s, box-shadow .18s, background .18s;
}

.auth-submit { position: relative; border: 0; color: #242534; background: var(--auth-green); cursor: pointer; }
.auth-submit:hover { background: #a5ec99; box-shadow: 0 8px 18px rgba(76, 155, 71, .18); transform: translateY(-1px); }
.auth-submit:focus-visible, .auth-microsoft:focus-visible { outline: 3px solid rgba(103, 89, 232, .32); outline-offset: 3px; }
.auth-submit:disabled { cursor: wait; opacity: .78; transform: none; }
.auth-submit-loading, .microsoft-loading { display: none; align-items: center; gap: 8px; }
.auth-submit.is-loading .auth-submit-label, .auth-microsoft.is-loading .microsoft-label { display: none; }
.auth-submit.is-loading .auth-submit-loading, .auth-microsoft.is-loading .microsoft-loading { display: inline-flex; }
.auth-spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-divider { display: flex; align-items: center; gap: 13px; margin: 30px 0 22px; color: #a0a3ad; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.auth-divider span:first-child, .auth-divider span:last-child { height: 1px; flex: 1; background: #e6e7eb; }
.auth-microsoft { gap: 10px; border: 1px solid #dfe1e7; color: #40434d; background: #fff; text-decoration: none; }
.auth-microsoft:hover { border-color: #c9c6f7; background: #faf9ff; box-shadow: 0 6px 16px rgba(39, 35, 83, .07); }
.auth-microsoft.is-disabled { color: #989ca6; background: #f7f7f8; cursor: not-allowed; }
.ms-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 17px; height: 17px; }
.ms-logo i:nth-child(1) { background: #f35325; }.ms-logo i:nth-child(2) { background: #81bc06; }.ms-logo i:nth-child(3) { background: #05a6f0; }.ms-logo i:nth-child(4) { background: #ffba08; }
.auth-config-note, .auth-demo { margin: 9px 0 0; color: #979ba5; font-size: 10px; text-align: center; }
.auth-register { margin: 27px 0 0; color: #858994; font-size: 12px; text-align: center; }
.auth-register a { color: var(--auth-purple); font-weight: 700; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared styling for the existing registration, terms and reset pages. */
.bt-login-page { min-height: 100vh; box-sizing: border-box; margin: 0; padding: 38px; display: flex; align-items: center; justify-content: center; color: #f6f7f8; background: #171c21; }
.bt-login-card { width: min(100%, 1024px); box-sizing: border-box; padding: 64px; border-radius: 1px; background: #1d2328; box-shadow: 0 10px 25px rgba(17, 21, 26, .13); }
.bt-login-card .login-brand { justify-content: flex-start; padding: 0 0 48px; color: #fff; }
.bt-login-card h1 { margin: 0 0 14px; font: 500 clamp(32px, 4vw, 55px) 'Space Grotesk', sans-serif; letter-spacing: -1.8px; }
.login-subtitle { margin: 0 0 30px; color: #a3a8ac; font-size: 15px; }
.login-field { position: relative; margin-bottom: 25px; }
.login-field input { display: block; width: 100%; height: 68px; box-sizing: border-box; padding: 0 22px; border: 0; border-radius: 12px; outline: 3px solid transparent; color: #f4f6f7; background: #252b30; font: 400 19px 'DM Sans', sans-serif; transition: .15s; }
.login-field input:focus { outline-color: #2375db; }.login-field input::placeholder { color: #8e9396; }
.show-password { position: absolute; top: 22px; right: 18px; border: 0; color: #6d7478; background: transparent; font-size: 18px; cursor: pointer; }
.stay-logged { display: flex; align-items: center; gap: 12px; margin: 27px 0 32px; color: #f6f7f8; font-size: 16px; cursor: pointer; }
.stay-logged input, .terms-check input { appearance: none; width: 31px; height: 31px; margin: 0; border: 2px solid #6df27b; border-radius: 7px; background: transparent; }
.stay-logged input:checked, .terms-check input:checked { background: #6df27b; box-shadow: inset 0 0 0 8px #1d2328; }
.login-submit, .microsoft-login { display: flex; align-items: center; justify-content: center; width: 100%; height: 62px; border-radius: 12px; font: 500 20px 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; }
.login-submit { border: 0; color: #0c1710; background: #adf3a7; }.login-submit:hover { background: #c0f8ba; }
.forgot-link { display: block; margin: 20px 0 42px; color: #adf3a7; font-size: 17px; text-align: center; }
.login-divider { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; color: #747a7e; font-size: 16px; }.login-divider span { height: 1px; flex: 1; background: #737a7f; }.login-divider b { font-weight: 400; }
.microsoft-login { gap: 16px; border: 3px solid #adf3a7; color: #adf3a7; background: transparent; }.microsoft-login:hover { background: #26352c; }
.register-prompt { margin-top: 35px; color: #9fa5a9; font-size: 13px; text-align: center; }.register-prompt a { color: #adf3a7; font-weight: 700; }
.login-notice { margin-bottom: 20px; padding: 13px 16px; border: 1px solid #6df27b; border-radius: 7px; color: #adf3a7; background: #203627; font-size: 13px; }.login-validation { margin: 12px 0; color: #ff9d9d; font-size: 13px; }
.auth-label { display: block; margin: 14px 0 6px; color: #b2b7ba; font-size: 12px; }.register-card .login-field { margin-bottom: 0; }.login-demo { margin-top: 25px; color: #767d80; font-size: 11px; text-align: center; }
.register-intro { max-width: 900px; margin: 0 0 35px; color: #f3f4f4; font-size: 18px; line-height: 1.55; }.register-ms { margin-bottom: 45px; }.register-divider { margin-bottom: 32px; }.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.phone-field { display: flex; align-items: center; height: 68px; margin-bottom: 27px; border-radius: 12px; background: #252b30; }.phone-field span { padding: 0 18px; border-right: 1px solid #4b5154; color: #f5f5f5; font-size: 16px; white-space: nowrap; }.phone-field input { min-width: 0; flex: 1; padding: 0 20px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 18px; }.phone-field input::placeholder { color: #8e9396; }.optional { color: #767d80; font-weight: 400; }
.terms-check { display: flex; align-items: flex-start; gap: 13px; margin: 25px 0 40px; color: #f3f4f4; font-size: 14px; line-height: 1.7; cursor: pointer; }.terms-check input { flex: 0 0 auto; margin-top: 2px; }.terms-check a { color: #adf3a7; }.terms-card .terms-copy { max-width: 800px; margin: 0 0 35px; color: #b2b7ba; font-size: 16px; line-height: 1.7; }.terms-back { max-width: 320px; }

@media (max-width: 1100px) {
    .auth-shell { grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); }
    .auth-brand-panel { padding: 45px 42px 28px; }
    .auth-form-panel { padding-right: 52px; padding-left: 52px; }
}

@media (max-width: 800px) {
    .auth-page { padding: 0; place-items: stretch; }
    .auth-shell { min-height: 100svh; grid-template-columns: 1fr; border-radius: 0; }
    .auth-brand-panel { min-height: 285px; padding: 32px 28px 24px; }
    .auth-brand-copy { max-width: 600px; margin-top: 38px; }
    .auth-brand-copy h1 { max-width: 500px; font-size: clamp(34px, 8vw, 52px); }
    .auth-brand-copy > p:last-child { max-width: 560px; margin-top: 14px; font-size: 13px; }
    .auth-visual { display: none; }
    .auth-brand-footer { margin-top: 28px; }
    .auth-form-panel { padding: 48px 28px 60px; }
    .auth-mobile-brand { display: inline-flex; }
}

@media (max-width: 520px) {
    .auth-brand-panel { min-height: 250px; }
    .auth-brand-copy { margin-top: 30px; }
    .auth-brand-copy h1 { letter-spacing: -1.8px; }
    .auth-brand-copy > p:last-child { display: none; }
    .auth-brand-footer { font-size: 9px; }
    .auth-form-panel { padding: 36px 22px 50px; }
    .auth-mobile-brand { margin-bottom: 36px; }
    .auth-form-panel h2 { font-size: 31px; }
    .auth-options { align-items: flex-start; flex-direction: column; }
    .auth-link { font-size: 12px; }
}

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