:root {
    --auth-accent: #ff9c2e;
    --auth-accent-hover: #f48b14;
    --auth-accent-soft: rgba(255, 156, 46, 0.12);
    --auth-text: #17191d;
    --auth-muted: #6f7580;
    --auth-faint: #9aa0aa;
    --auth-border: #e2e5e9;
    --auth-surface: #ffffff;
    --auth-field: #f1f3f5;
    --auth-canvas: #f4f6f8;
}

html {
    min-height: 100%;
    background: var(--auth-canvas);
}

body.auth-shell,
[data-theme="dark"] body.auth-shell,
[data-theme="light"] body.auth-shell {
    --accent: var(--auth-accent);
    --accent-strong: var(--auth-accent-hover);
    --accent-soft: var(--auth-accent-soft);
    --text-main: var(--auth-text);
    --text-soft: var(--auth-muted);
    --text-muted: var(--auth-muted);
    min-height: 100%;
    margin: 0;
    padding: 0 !important;
    background: var(--auth-canvas) !important;
    color: var(--auth-text) !important;
    color-scheme: light;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    overflow-x: hidden;
}

body.auth-shell .auth-page {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    overflow: visible;
    background: var(--auth-canvas);
}

body.auth-shell .auth-page::before {
    display: none;
}

body.auth-shell .auth-left {
    position: sticky;
    top: 0;
    min-height: 100dvh;
    height: 100dvh;
    padding: 48px clamp(46px, 5vw, 86px) 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: #eeeff1;
}

body.auth-shell .left-inner {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

body.auth-shell .auth-left .hero-eyebrow,
body.auth-shell .trust-stack {
    display: none;
}

body.auth-shell .left-inner h1 {
    order: 1;
    max-width: 520px;
    margin: 0 0 12px;
    color: var(--auth-text);
    font-size: clamp(30px, 2.45vw, 44px);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: 0;
}

body.auth-shell .hero-subtitle {
    order: 2;
    max-width: 520px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 15px;
    font-weight: 450;
    line-height: 1.55;
}

body.auth-shell .hero-image-place {
    order: 3;
    width: min(760px, 100%);
    height: auto;
    min-height: 280px;
    flex: 1 1 auto;
    margin: 4px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.auth-shell .hero-image-place::before {
    display: none;
}

body.auth-shell .hero-image-place img {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 650px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transform: scale(1.22) translateY(-2%);
    transform-origin: center;
}

body.auth-shell .stats {
    order: 4;
    width: 100%;
    max-width: none;
    min-height: 96px;
    margin: 0;
    padding: 22px 0 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 0;
    border-top: 1px solid #d8dadd;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.auth-shell .stat-item {
    min-width: 0;
    padding: 0 24px;
    gap: 7px;
    border-left: 1px solid #d8dadd;
}

body.auth-shell .stat-item:first-child {
    padding-left: 0;
    border-left: 0;
}

body.auth-shell .stat-item strong {
    color: var(--auth-text);
    font-size: 27px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
}

body.auth-shell .stat-item span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

body.auth-shell .auth-right {
    min-height: 100dvh;
    padding: 38px clamp(34px, 4vw, 74px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-canvas);
}

body.auth-shell .auth-right-inner {
    width: 100%;
    max-width: 470px;
    margin: auto;
}

body.auth-shell .auth-brand {
    width: fit-content;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text);
    text-decoration: none;
}

body.auth-shell .auth-brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    background: #fff;
}

body.auth-shell .auth-brand-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

body.auth-shell .auth-brand-name {
    max-width: 260px;
    overflow: hidden;
    color: var(--auth-text);
    font-size: 21px;
    font-weight: 750;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.auth-shell .auth-form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px;
    position: relative;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-surface);
    box-shadow: 0 18px 50px rgba(21, 24, 29, 0.07);
    backdrop-filter: none;
}

body.auth-shell .mobile-auth-intro,
body.auth-shell .form-kicker {
    display: none !important;
}

body.auth-shell .form-heading {
    max-width: 55%;
    margin: 0 0 8px;
}

body.auth-shell .auth-form h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

body.auth-shell .signin-text {
    max-width: 48%;
    margin: 0;
    position: absolute;
    top: 31px;
    right: 28px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: right;
}

body.auth-shell .auth-form-description {
    max-width: none;
    margin: 10px 0 0;
    position: static;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

body.auth-shell .signin-text a,
body.auth-shell .forgot-row a,
body.auth-shell .twofa-back a {
    color: #ec8010;
    font-weight: 650;
    text-decoration: none;
}

body.auth-shell .signin-text a:hover,
body.auth-shell .forgot-row a:hover,
body.auth-shell .twofa-back a:hover {
    color: #c96600;
}

body.auth-shell .auth-form form {
    margin-top: 28px;
}

body.auth-shell .field {
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--auth-field);
    box-shadow: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

body.auth-shell .field:hover {
    border-color: #d8dce1;
    background: #eef0f2;
}

body.auth-shell .field:focus-within {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 156, 46, 0.1);
}

body.auth-shell .field.success {
    border-color: #c9d1d8;
    background: #fff;
}

body.auth-shell .field.error {
    border-color: #e54f5f;
    background: #fff;
    box-shadow: none;
}

body.auth-shell .field input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
}

body.auth-shell .field input::placeholder {
    color: #969ca5;
    opacity: 1;
}

body.auth-shell .field-status {
    right: 14px;
    color: #a3a8b0;
}

body.auth-shell .password-field .field-status {
    right: 45px;
}

body.auth-shell .field.success .field-status {
    color: #39a96b;
}

body.auth-shell .field.error .field-status {
    color: #e54f5f;
}

body.auth-shell .toggle-password {
    right: 12px;
    color: #737983;
}

body.auth-shell .toggle-password:hover {
    color: var(--auth-text);
    background: transparent;
}

body.auth-shell .field-feedback {
    min-height: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: #d83f50;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    transform: none;
    transition: max-height 160ms ease, margin 160ms ease, opacity 160ms ease;
}

body.auth-shell .field-feedback.visible {
    max-height: 40px;
    margin: 7px 2px 0;
    opacity: 1;
}

body.auth-shell .auth-next-btn,
body.auth-shell .submit-btn {
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 18px 0 0;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--auth-accent);
    color: #161616;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, transform 120ms ease;
}

body.auth-shell .auth-next-btn:hover,
body.auth-shell .submit-btn.active:hover {
    background: var(--auth-accent-hover);
    transform: translateY(-1px);
}

body.auth-shell .auth-next-btn:active,
body.auth-shell .submit-btn.active:active {
    transform: translateY(0);
}

body.auth-shell .submit-btn:disabled,
body.auth-shell .submit-btn:disabled:hover {
    background: #e8eaed;
    color: #a0a5ad;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

body.auth-shell .submit-btn.active {
    background: var(--auth-accent);
    color: #161616;
}

body.auth-shell .submit-btn .spinner {
    border-color: rgba(25, 25, 25, 0.25);
    border-top-color: #191919;
}

body.auth-shell .auth-progressive-fields {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 420ms ease, opacity 220ms ease, transform 260ms ease, visibility 0s linear 420ms;
}

body.auth-shell form.is-expanded > .auth-next-btn {
    display: none;
}

body.auth-shell .auth-passkey-btn {
    width: 100%;
    height: 50px;
    margin: 12px 0 0;
    padding: 0 18px;
    border: 1px solid #d5d9df;
    border-radius: 999px;
    background: #fff;
    color: var(--auth-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

body.auth-shell .auth-passkey-btn:hover {
    border-color: #aeb4bc;
    background: #f8f9fa;
}

body.auth-shell form.is-expanded > .auth-passkey-btn {
    display: none;
}

body.auth-shell form.is-expanded > .auth-progressive-fields {
    max-height: 1800px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: max-height 520ms ease, opacity 240ms ease 80ms, transform 260ms ease 60ms, visibility 0s;
}

body.auth-shell .auth-progressive-fields > .field:first-child {
    margin-top: 16px;
}

body.auth-shell .password-rules {
    margin: 10px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.auth-shell .password-rules .rule-pill,
body.auth-shell .password-rules div {
    min-height: 25px;
    padding: 5px 9px;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    background: #f7f8f9;
    color: #858b94;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

body.auth-shell .password-rules .rule-pill.valid,
body.auth-shell .password-rules div.valid {
    border-color: #b9dfc8;
    background: #f1faf4;
    color: #258851;
}

body.auth-shell .password-rules .rule-pill.invalid,
body.auth-shell .password-rules div.invalid {
    border-color: #e0e3e7;
    background: #f7f8f9;
    color: #858b94;
}

body.auth-shell .optional-btn {
    width: 100%;
    min-height: 42px;
    margin: 10px 0 0;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid #eceef0;
    border-radius: 0;
    background: transparent;
    color: #555b65;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

body.auth-shell .optional-btn:hover,
body.auth-shell .optional-btn[aria-expanded="true"] {
    color: #c96600;
    background: transparent;
}

body.auth-shell .optional-btn span {
    color: #989ea7;
}

body.auth-shell .optional-panel-inner {
    padding: 10px 0 2px;
}

body.auth-shell .optional-panel .field {
    margin: 0;
}

body.auth-shell .fake-captcha,
body.auth-shell .security-check {
    min-height: 62px;
    margin: 16px 0 0;
    padding: 10px 13px;
    border: 1px solid #dfe2e6;
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    box-shadow: none;
}

body.auth-shell .fake-captcha:hover {
    border-color: #c9cdd3;
    background: #fff;
}

body.auth-shell .fake-captcha.is-verified,
body.auth-shell .security-check.is-verified {
    border-color: #abd8bc;
    background: #f3faf5;
}

body.auth-shell .security-check.error {
    border-color: #e54f5f;
    background: #fff8f8;
}

body.auth-shell .captcha-check {
    border-color: #cfd3d8;
    background: #f4f5f6;
}

body.auth-shell .captcha-mark,
body.auth-shell .captcha-brand .mdi {
    color: #2f9b5e;
}

body.auth-shell .captcha-text strong {
    color: var(--auth-text);
}

body.auth-shell .captcha-text span,
body.auth-shell .captcha-brand em {
    color: var(--auth-muted);
}

body.auth-shell .check-row {
    margin-top: 15px;
    color: #626873;
    font-size: 12px;
    line-height: 1.45;
}

body.auth-shell .check-row input {
    border-color: #c7cbd1;
    background: #fff;
}

body.auth-shell .check-row input:checked {
    border-color: var(--auth-accent);
    background: var(--auth-accent);
}

body.auth-shell .check-row a {
    color: #bd6100;
}

body.auth-shell .forgot-row,
body.auth-shell .twofa-back {
    margin-top: 15px;
    padding: 0;
    display: flex;
    justify-content: center;
}

body.auth-shell .forgot-row a,
body.auth-shell .twofa-back a {
    font-size: 13px;
}

body.auth-shell .auth-divider {
    margin: 24px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #969ca5;
    font-size: 12px;
    white-space: nowrap;
}

body.auth-shell .auth-divider::before,
body.auth-shell .auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eceef0;
}

body.auth-shell .auth-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.auth-shell .auth-socials button {
    height: 44px;
    min-width: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d9dde2;
    border-radius: 999px;
    background: #fff;
    color: #343840;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

body.auth-shell .auth-socials button:hover {
    border-color: #bfc4ca;
    background: #f7f8f9;
}

body.auth-shell .auth-socials .mdi {
    flex: 0 0 auto;
    font-size: 18px;
}

body.auth-shell .twofa-panel {
    margin-top: 22px;
}

body.auth-shell .twofa-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border: 1px solid rgba(255, 156, 46, 0.3);
    border-radius: 8px;
    background: var(--auth-accent-soft);
    box-shadow: none;
}

body.auth-shell .twofa-icon .mdi {
    color: #df7300;
    font-size: 27px;
}

body.auth-shell .twofa-description {
    max-width: 390px;
    margin: 0 auto 22px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.auth-shell .code-inputs {
    gap: 8px;
    margin-bottom: 8px;
}

body.auth-shell .code-input {
    height: 54px;
    border: 1px solid #dfe2e6;
    border-radius: 8px;
    background: var(--auth-field);
    color: var(--auth-text);
    font-size: 21px;
    box-shadow: none;
}

body.auth-shell .code-input:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 156, 46, 0.1);
    transform: none;
}

body.auth-shell .code-input.has-value {
    border-color: #ffc27f;
    background: #fff9f2;
}

body.auth-shell .twofa-error {
    color: #d83f50;
}

body.auth-shell .verify-modal {
    background: rgba(23, 25, 29, 0.48) !important;
}

body.auth-shell .verify-content {
    max-width: 420px !important;
    padding: 28px !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--auth-text) !important;
    box-shadow: 0 24px 70px rgba(17, 20, 25, 0.2) !important;
}

body.auth-shell .verify-content h2 {
    color: var(--auth-text) !important;
    font-size: 22px;
}

body.auth-shell .verify-input-group {
    min-height: 50px;
    border-color: #dfe2e6 !important;
    border-radius: 8px !important;
    background: var(--auth-field);
}

body.auth-shell .verify-input-group input {
    background: transparent;
    color: var(--auth-text);
}

body.auth-shell .verify-input-group button {
    color: #c96600 !important;
    font-weight: 650;
}

body.auth-shell .verify-confirm {
    min-height: 48px;
    border-radius: 999px !important;
    background: var(--auth-accent) !important;
    color: #171717 !important;
    font-weight: 700;
}

body.auth-shell .close-btn {
    color: #686e77;
}

body.auth-shell .site-toast-region {
    top: 18px;
    bottom: auto;
}

body.auth-shell .site-toast {
    border-color: #dfe2e6;
    background: #fff;
    color: var(--auth-text);
    box-shadow: 0 16px 40px rgba(21, 24, 29, 0.14);
}

body.auth-shell .site-toast__close {
    color: #7e848d;
}

@media (max-width: 1100px) {
    body.auth-shell .auth-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.auth-shell .auth-left {
        padding-inline: 42px;
    }

    body.auth-shell .auth-right {
        padding-inline: 30px;
    }
}

@media (max-width: 900px) {
    body.auth-shell .auth-page {
        display: block;
    }

    body.auth-shell .auth-left {
        display: none;
    }

    body.auth-shell .auth-right {
        width: 100%;
        min-height: 100dvh;
        padding: 32px 20px;
        align-items: center;
    }

    body.auth-shell .auth-right-inner {
        max-width: 500px;
    }

    body.auth-shell .auth-form {
        margin: 0;
    }
}

@media (max-width: 520px) {
    body.auth-shell .auth-right {
        padding: 24px 12px;
        align-items: flex-start;
    }

    body.auth-shell .auth-brand {
        margin-bottom: 16px;
    }

    body.auth-shell .auth-brand-name {
        font-size: 19px;
    }

    body.auth-shell .auth-form {
        padding: 24px 18px;
        border-radius: 8px;
    }

    body.auth-shell .form-heading {
        max-width: none;
        padding-right: 92px;
    }

    body.auth-shell .auth-form h2 {
        font-size: 21px;
    }

    body.auth-shell .signin-text {
        max-width: 45%;
        top: 28px;
        right: 18px;
        font-size: 12px;
    }

    body.auth-shell .auth-socials {
        gap: 7px;
    }

    body.auth-shell .auth-socials button {
        padding-inline: 6px;
        font-size: 11px;
    }

    body.auth-shell .code-inputs {
        gap: 6px;
    }

    body.auth-shell .code-input {
        height: 48px;
        font-size: 19px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    body.auth-shell .auth-left {
        padding-top: 34px;
    }

    body.auth-shell .left-inner h1 {
        font-size: 31px;
    }

    body.auth-shell .hero-subtitle {
        font-size: 14px;
    }

    body.auth-shell .hero-image-place {
        min-height: 210px;
        margin-top: 8px;
    }

    body.auth-shell .hero-image-place img {
        transform: scale(1.08) translateY(-2%);
    }

    body.auth-shell .stats {
        min-height: 82px;
        padding-block: 17px;
    }

    body.auth-shell .stat-item strong {
        font-size: 23px;
    }

    body.auth-shell .auth-right {
        padding-block: 24px;
    }
}

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