/* OctalAI Data Operations Center (ODOC) login */

.auth-shell {
    --auth-gutter-x: clamp(12px, 2.8vw, 44px);
    --auth-gutter-y: clamp(12px, 2.5vh, 36px);
    --auth-gutter-total-x: clamp(24px, 5.6vw, 88px);
    --auth-gutter-total-y: clamp(24px, 5vh, 72px);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--auth-gutter-y) var(--auth-gutter-x);
    color: #13203d;
    background:
        radial-gradient(circle at 2% 22%, rgba(105, 151, 255, 0.2) 0 9%, transparent 9.2%),
        radial-gradient(circle at 98% 14%, rgba(246, 174, 217, 0.18) 0 14%, transparent 14.2%),
        linear-gradient(140deg, #f5f8ff 0%, #fbfcff 50%, #fff8fc 100%) !important;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Keep the login form hidden until /auth/me has restored (or rejected) the session. */
.auth-shell.auth-booting .auth-stage {
    visibility: hidden;
    pointer-events: none;
}

.auth-bootstrap-loader {
    position: absolute;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 17px 10px 10px;
    color: #51607f;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(217, 225, 244, 0.95);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(70, 87, 145, 0.12);
}

.auth-shell.auth-booting .auth-bootstrap-loader {
    display: inline-flex;
}

.auth-bootstrap-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #4e78ff, #6b4ff3);
    border-radius: 9px;
    box-shadow: 0 6px 14px rgba(91, 85, 242, 0.22);
    animation: auth-bootstrap-pulse 1.1s ease-in-out infinite;
}

.auth-bootstrap-mark i {
    font-size: 17px;
}

.auth-bootstrap-loader strong {
    color: #263553;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.auth-bootstrap-loader small {
    color: #8090ae;
    font-size: 12px;
}

@keyframes auth-bootstrap-pulse {
    50% { transform: scale(0.92); opacity: 0.72; }
}

.auth-shell::before,
.auth-shell::after {
    position: fixed;
    z-index: -1;
    width: 220px;
    height: 220px;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    filter: blur(1px);
}

.auth-shell::before {
    top: -80px;
    left: 35%;
    background: rgba(123, 115, 255, 0.07);
}

.auth-shell::after {
    right: -88px;
    bottom: -82px;
    background: rgba(255, 180, 213, 0.11);
}

.auth-shell [hidden] {
    display: none !important;
}

.auth-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(410px, 0.95fr);
    width: min(1440px, calc(100vw - var(--auth-gutter-total-x)));
    height: min(900px, calc(100dvh - var(--auth-gutter-total-y)));
    min-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 26px;
    box-shadow: 0 24px 80px rgba(57, 76, 145, 0.12);
    backdrop-filter: blur(18px);
}

.auth-showcase {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-width: 0;
    padding: clamp(34px, 3.3vw, 58px);
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 16%, rgba(159, 199, 255, 0.22), transparent 27%),
        radial-gradient(circle at 25% 84%, rgba(177, 153, 255, 0.2), transparent 32%),
        linear-gradient(145deg, #f4f6ff 0%, #edf3ff 58%, #f6f5ff 100%);
}

.auth-showcase::before {
    position: absolute;
    top: 44%;
    left: -100px;
    width: 210px;
    height: 210px;
    content: "";
    border: 1px solid rgba(114, 135, 255, 0.16);
    border-radius: 50%;
}

.auth-showcase-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.auth-octagon-mark {
    display: inline-grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #4e78ff, #6b4ff3);
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(91, 85, 242, 0.28);
    transform: rotate(22.5deg);
}

.auth-octagon-mark i {
    font-size: 36px;
    line-height: 1;
    transform: rotate(-22.5deg);
}

.auth-showcase-brand h1 {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    color: #16213f;
    font-size: clamp(30px, 2.9vw, 47px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.auth-showcase-brand h1 strong {
    color: #5d62f1;
    font-weight: 800;
}

.auth-showcase-brand h1 span {
    font-size: 0.78em;
}

.auth-showcase-brand p {
    margin: 7px 0 0;
    color: #7582a2;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.auth-showcase-copy {
    position: relative;
    z-index: 1;
    margin: 13px 0 0;
    color: #7b88a8;
    font-size: 15px;
    letter-spacing: 0.4em;
    text-align: center;
}

.auth-hero-visual {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 10px 0 4px;
}

.auth-hero-visual::after {
    position: absolute;
    right: 10%;
    bottom: 7%;
    left: 10%;
    z-index: -1;
    height: 12%;
    content: "";
    background: rgba(92, 112, 226, 0.16);
    border-radius: 50%;
    filter: blur(24px);
}

.auth-hero-visual img {
    display: block;
    width: min(100%, 820px);
    max-height: min(52vh, 540px);
    object-fit: contain;
    filter: drop-shadow(0 22px 32px rgba(79, 92, 171, 0.12));
}

.auth-benefit-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(92, 105, 168, 0.06);
}

.auth-benefit-strip article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.auth-benefit-strip article + article {
    border-left: 1px solid #e2e7f5;
}

.auth-benefit-strip article > i {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    font-size: 19px;
    background: linear-gradient(145deg, #7767ff, #496dff);
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(88, 87, 235, 0.18);
}

.auth-benefit-strip article div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.auth-benefit-strip strong {
    color: #253252;
    font-size: 14px;
}

.auth-benefit-strip span {
    overflow: hidden;
    color: #7d89a7;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-card {
    position: relative;
    display: flex;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: clamp(24px, 4.2vh, 64px) clamp(34px, 4.6vw, 72px) !important;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.76) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.auth-card::before {
    position: absolute;
    inset: clamp(14px, 2.8vh, 42px) clamp(16px, 2.5vw, 38px);
    content: "";
    pointer-events: none;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(239, 242, 250, 0.86);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(84, 93, 149, 0.06);
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-state-panel {
    width: 100%;
    max-width: 480px;
    max-height: 100%;
    margin: auto;
}

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

.auth-login-heading {
    margin-bottom: 34px;
}

.auth-login-heading small {
    display: block;
    margin-bottom: 9px;
    color: #8a95b1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.auth-login-heading h2 {
    margin: 0 0 8px;
    color: #15203d;
    font-size: clamp(30px, 2.5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
}

.auth-login-heading h2 span {
    color: #6864f5;
}

.auth-login-heading > strong {
    display: block;
    color: #1c2743;
    font-size: 20px;
    font-weight: 700;
}

.auth-login-heading p {
    margin: 24px 0 0;
    color: #9aa4bb;
    font-size: 14px;
}

.auth-form.auth-login-form {
    display: grid;
    gap: 17px;
}

.auth-login-field {
    display: block !important;
    margin: 0 !important;
}

.auth-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.auth-input-shell {
    display: flex;
    width: 100%;
    height: 58px;
    align-items: center;
    gap: 13px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce3f2;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-shell:focus-within {
    background: #fff;
    border-color: #7770f5;
    box-shadow: 0 0 0 4px rgba(102, 95, 241, 0.11);
}

.auth-input-shell > i {
    flex: 0 0 auto;
    color: #7f8dab;
    font-size: 20px;
}

.auth-input-shell input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    color: #1d2945;
    font-size: 15px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.auth-input-shell input::placeholder {
    color: #a1abc1;
}

.auth-password-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: #7784a2;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: #5f5af0;
    background: #f1f0ff;
    outline: none;
}

.auth-session-note {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -3px;
    color: #717e9b;
    font-size: 12px;
}

.auth-session-note span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.auth-session-note span i {
    color: #6b65f4;
}

.auth-session-note small {
    overflow: hidden;
    color: #9aa4b9;
    font-size: 11px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-submit {
    display: flex !important;
    width: 100% !important;
    height: 58px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 3px;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em;
    background: linear-gradient(90deg, #6256f4, #7059f6) !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: 0 12px 26px rgba(101, 84, 242, 0.2) !important;
}

.auth-submit:hover {
    background: linear-gradient(90deg, #5548ed, #654cf0) !important;
    box-shadow: 0 15px 30px rgba(101, 84, 242, 0.28) !important;
    transform: translateY(-1px);
}

.auth-submit i {
    margin-left: 2px;
    font-size: 15px;
}

.auth-divider {
    display: flex;
    width: 100%;
    max-width: 480px;
    align-items: center;
    gap: 16px;
    margin: 31px auto 26px !important;
    color: #a0a9bd !important;
    font-size: 12px;
}

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

.auth-wechat-button {
    display: flex !important;
    width: 100% !important;
    max-width: 480px;
    height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto !important;
    color: #615cf2 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    background: linear-gradient(90deg, #f6f5ff, #f2f4ff) !important;
    border: 1px solid #dcdcf9 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.auth-wechat-button i {
    font-size: 20px;
}

.auth-wechat-button:hover:not(:disabled) {
    color: #5048e8 !important;
    background: #ecebff !important;
    border-color: #bab7fb !important;
}

.auth-wechat-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

#wechatQrArea {
    width: 100%;
    max-width: 480px;
    margin: 18px auto 0;
    text-align: center;
}

#wechatQrArea img,
#wechatQrArea canvas {
    max-width: min(220px, 100%);
    height: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e6f1;
    border-radius: 12px;
}

.auth-link {
    display: block;
    width: fit-content;
    margin: 13px auto 0;
    color: #625af1 !important;
    font-size: 13px;
    font-weight: 600;
}

.auth-provider-hint {
    max-width: 480px;
    margin: 15px auto 0 !important;
    color: #8d98b0 !important;
    font-size: 11px !important;
    line-height: 1.65;
    text-align: center;
}

.auth-message {
    width: 100%;
    max-width: 480px;
    min-height: 22px;
    margin: 16px auto 0;
    color: #596784;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.auth-message.error {
    color: #db3e53;
}

.auth-message.success {
    color: #159c67;
}

.auth-internal-note {
    display: flex;
    width: 100%;
    max-width: 480px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 9px auto 0 !important;
    color: #a0a8ba !important;
    font-size: 11px !important;
}

.auth-secondary-state {
    padding: 34px 0;
    text-align: center;
}

.auth-state-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    place-items: center;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(145deg, #7667fa, #526bfa);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(91, 85, 242, 0.24);
}

.auth-secondary-state h2 {
    margin: 0 0 10px;
    color: #18223e;
    font-size: 26px;
}

.auth-secondary-state > p {
    margin: 0 auto 26px;
    color: #7b87a2;
    font-size: 14px;
    line-height: 1.7;
}

.auth-secondary-state .auth-form {
    display: grid;
    gap: 15px;
    text-align: left;
}

.auth-secondary-state .auth-form label {
    display: grid;
    gap: 7px;
    color: #4c5875;
    font-size: 13px;
    font-weight: 600;
}

.auth-secondary-state .auth-form input {
    height: 52px;
    padding: 0 15px;
    color: #1e2944;
    background: #fff;
    border: 1px solid #dce3f2;
    border-radius: 9px;
    outline: none;
}

.auth-secondary-state .auth-form input:focus {
    border-color: #746df4;
    box-shadow: 0 0 0 4px rgba(102, 95, 241, 0.1);
}

.auth-secondary-state .auth-form .btn {
    min-height: 50px;
}

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

    .auth-showcase {
        padding: 36px;
    }

    .auth-showcase-brand h1 {
        font-size: 32px;
    }

    .auth-benefit-strip article {
        padding: 0 10px;
    }

    .auth-benefit-strip article > i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .auth-card {
        padding-right: 38px !important;
        padding-left: 38px !important;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        --auth-gutter-x: clamp(12px, 3.4vw, 28px);
        --auth-gutter-y: clamp(12px, 3vh, 28px);
        --auth-gutter-total-x: clamp(24px, 6.8vw, 56px);
        --auth-gutter-total-y: clamp(24px, 6vh, 56px);
    }

    .auth-stage {
        display: block;
        width: min(560px, calc(100vw - var(--auth-gutter-total-x)));
        height: calc(100dvh - var(--auth-gutter-total-y));
        min-height: 0;
        overflow: hidden;
        border-radius: 24px;
    }

    .auth-showcase {
        display: none;
    }

    .auth-card {
        height: 100%;
        min-height: 0;
        padding: clamp(24px, 4.2vh, 42px) clamp(30px, 6vw, 48px) !important;
        border-radius: 24px !important;
    }

    .auth-card::before {
        inset: 18px;
    }

    .auth-state-panel {
        margin: 0 auto;
    }

    .auth-mobile-brand {
        display: flex;
        max-width: 480px;
        align-items: center;
        gap: 12px;
        margin: 0 auto clamp(16px, 3.6vh, 34px);
    }

    .auth-mobile-brand .auth-octagon-mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .auth-mobile-brand .auth-octagon-mark i {
        font-size: 27px;
    }

    .auth-mobile-brand div {
        display: grid;
        gap: 2px;
    }

    .auth-mobile-brand strong {
        color: #5f5bef;
        font-size: 20px;
        line-height: 1;
    }

    .auth-mobile-brand span {
        color: #66738e;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        align-items: stretch;
        padding: 0;
        background: #f7f8fc;
    }

    .auth-stage {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-card {
        height: 100dvh;
        min-height: 0;
        padding: clamp(14px, 2.7vh, 22px) 20px !important;
        justify-content: center;
        border-radius: 0 !important;
    }

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

    .auth-mobile-brand {
        margin-bottom: clamp(10px, 2.3vh, 18px);
    }

    .auth-login-heading {
        margin-bottom: clamp(11px, 2.2vh, 18px);
    }

    .auth-login-heading h2 {
        font-size: clamp(27px, 8vw, 31px);
    }

    .auth-login-heading > strong {
        font-size: 18px;
    }

    .auth-login-heading p {
        margin-top: 10px;
    }

    .auth-input-shell,
    .auth-submit {
        height: clamp(47px, 7.3vh, 52px);
    }

    .auth-session-note small {
        display: none;
    }

    .auth-provider-hint {
        padding: 0 8px;
    }

    .auth-form.auth-login-form {
        gap: clamp(8px, 1.7vh, 13px);
    }

    .auth-session-note {
        min-height: 20px;
        font-size: 11px;
    }

    .auth-divider {
        margin-top: clamp(10px, 2vh, 17px) !important;
        margin-bottom: clamp(9px, 1.8vh, 15px) !important;
    }

    .auth-wechat-button {
        height: clamp(46px, 7vh, 50px);
    }

    .auth-provider-hint {
        margin-top: clamp(7px, 1.4vh, 11px) !important;
        font-size: 10px !important;
        line-height: 1.45;
    }

    .auth-message {
        min-height: 16px;
        margin-top: clamp(4px, 1.2vh, 9px);
        font-size: 12px;
        line-height: 1.35;
    }

    .auth-internal-note {
        margin-top: 3px !important;
        font-size: 10px !important;
    }
}

@media (max-height: 780px) and (min-width: 901px) {
    .auth-showcase {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .auth-hero-visual img {
        max-height: 42vh;
    }

    .auth-card {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

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

    .auth-login-heading p {
        margin-top: 15px;
    }

    .auth-divider {
        margin-top: 22px !important;
        margin-bottom: 19px !important;
    }
}

@media (max-height: 700px) and (max-width: 560px) {
    .auth-mobile-brand {
        margin-bottom: 8px;
    }

    .auth-mobile-brand .auth-octagon-mark {
        width: 38px;
        height: 38px;
    }

    .auth-mobile-brand .auth-octagon-mark i {
        font-size: 23px;
    }

    .auth-login-heading small,
    .auth-login-heading p,
    .auth-session-note small,
    .auth-provider-hint,
    .auth-internal-note {
        display: none;
    }

    .auth-login-heading {
        margin-bottom: 9px;
    }

    .auth-login-heading h2 {
        margin-bottom: 4px;
        font-size: 25px;
    }

    .auth-login-heading > strong {
        font-size: 16px;
    }

    .auth-input-shell,
    .auth-submit,
    .auth-wechat-button {
        height: 45px;
    }

    .auth-session-note {
        min-height: 16px;
    }

    .auth-divider {
        margin-top: 9px !important;
        margin-bottom: 8px !important;
    }

    .auth-message {
        min-height: 0;
        margin-top: 5px;
    }

    .auth-secondary-state {
        padding: 0;
    }

    .auth-state-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
        font-size: 22px;
        border-radius: 15px;
    }

    .auth-secondary-state h2 {
        margin-bottom: 6px;
        font-size: 22px;
    }

    .auth-secondary-state > p {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.45;
    }

    .auth-secondary-state .auth-form {
        gap: 8px;
    }

    .auth-secondary-state .auth-form label {
        gap: 4px;
        font-size: 11px;
    }

    .auth-secondary-state .auth-form input,
    .auth-secondary-state .auth-form .btn {
        min-height: 0;
        height: 42px;
    }
}

@media (max-height: 560px) and (min-width: 561px) and (max-width: 900px) {
    .auth-shell {
        --auth-gutter-x: 10px;
        --auth-gutter-y: 10px;
        --auth-gutter-total-x: 20px;
        --auth-gutter-total-y: 20px;
    }

    .auth-stage {
        width: min(860px, calc(100vw - 20px));
        height: calc(100dvh - 20px);
    }

    .auth-card {
        padding: 14px 28px !important;
    }

    .auth-card::before {
        inset: 7px;
    }

    .auth-mobile-brand,
    .auth-internal-note {
        display: none;
    }

    .auth-state-panel[data-auth-state="login"] {
        display: grid;
        max-width: 760px;
        grid-template-columns: minmax(180px, 0.68fr) minmax(330px, 1fr);
        grid-template-areas:
            "heading form"
            "heading divider"
            "heading wechat"
            "heading hint";
        column-gap: 28px;
        align-items: center;
    }

    .auth-login-heading {
        grid-area: heading;
        margin: 0;
    }

    .auth-login-heading h2 {
        font-size: 29px;
    }

    .auth-login-heading p {
        margin-top: 10px;
    }

    #passwordLoginPanel {
        grid-area: form;
    }

    .auth-form.auth-login-form {
        gap: 7px;
    }

    .auth-input-shell,
    .auth-submit {
        height: 42px;
    }

    .auth-session-note {
        min-height: 16px;
    }

    .auth-divider {
        grid-area: divider;
        margin: 7px 0 !important;
    }

    .auth-wechat-button {
        grid-area: wechat;
        height: 42px;
    }

    .auth-provider-hint {
        grid-area: hint;
        margin-top: 5px !important;
        font-size: 10px !important;
        line-height: 1.35;
    }

    #wechatQrArea,
    .auth-link {
        grid-column: 1 / -1;
    }

    .auth-message {
        min-height: 0;
        margin-top: 4px;
    }

    .auth-secondary-state:not([hidden]) {
        display: grid;
        max-width: 760px;
        padding: 0;
        grid-template-columns: minmax(180px, 0.68fr) minmax(330px, 1fr);
        grid-template-areas:
            "state-icon state-form"
            "state-title state-form"
            "state-copy state-form";
        column-gap: 28px;
        align-content: center;
        text-align: left;
    }

    .auth-secondary-state .auth-state-icon {
        width: 50px;
        height: 50px;
        grid-area: state-icon;
        margin: 0 0 9px;
        font-size: 22px;
        border-radius: 15px;
    }

    .auth-secondary-state h2 {
        grid-area: state-title;
        margin-bottom: 6px;
        font-size: 22px;
    }

    .auth-secondary-state > p {
        grid-area: state-copy;
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
    }

    .auth-secondary-state .auth-form,
    .auth-secondary-state .auth-pending-exit {
        grid-area: state-form;
    }

    .auth-secondary-state .auth-form {
        gap: 7px;
    }

    .auth-secondary-state .auth-form label {
        gap: 3px;
        font-size: 11px;
    }

    .auth-secondary-state .auth-form input,
    .auth-secondary-state .auth-form .btn {
        min-height: 0;
        height: 40px;
    }
}

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