/* 登录 / 注册：轻量顶栏 + 居中卡片 */
body.www-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.www-auth-topbar {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 16, 0.95);
    backdrop-filter: blur(12px);
}

.www-auth-topbar__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.www-auth-topbar .www-brand {
    text-decoration: none;
}

.www-auth-topbar__back {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--www-color-muted, #8fa3b8);
    text-decoration: none;
}

.www-auth-topbar__back:hover {
    color: var(--www-color-accent-hover, #8ab8ff);
}

.www-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 3rem;
}

.www-auth-card {
    width: 100%;
    max-width: 26rem;
    padding: 2rem 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(165deg, rgba(26, 36, 51, 0.95), rgba(18, 26, 36, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.www-auth-shell .www-page__title {
    font-family: var(--www-font-serif, Georgia, serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.www-auth-shell .www-page__lead {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.www-auth-footer-note {
    margin: 1.5rem 0 0;
    font-size: 0.8rem;
    color: var(--www-color-muted, #8fa3b8);
    text-align: center;
}

/* 必选协议 + 弹窗 */
.www-tenant-agreements {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.www-tenant-agreements__lead {
    margin: 0 0 0.5rem;
}

.www-tenant-agreements__row {
    margin: 0.35rem 0;
}

.www-tenant-agreements__view-all {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.www-tenant-agreements__view-all a {
    color: var(--www-color-accent, #7eb8ff);
    text-decoration: underline;
}

.www-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.5rem;
    cursor: pointer;
}

/* 复选框与文案同一 flex 行（不拆成「只有勾选框一行 / 只有文案一行」）；文案在 span 内多行换行 */
.www-checkbox-row--single-agreement {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.www-checkbox-row--single-agreement input[type='checkbox'] {
    flex-shrink: 0;
}

.www-checkbox-row--single-agreement span {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
    overflow-wrap: break-word;
}

.www-checkbox-row--single-agreement a {
    color: var(--www-color-accent, #7eb8ff);
    text-decoration: underline;
}

.www-checkbox-row input {
    margin-top: 0.2rem;
}

.www-agreement-dialog {
    max-width: min(48rem, 96vw);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: 0;
    background: #0b0f14;
    color: #e8eef5;
}

.www-agreement-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.www-agreement-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.www-agreement-dialog__body {
    max-height: min(72vh, 40rem);
    overflow: auto;
    padding: 0.65rem 0.75rem 0.85rem;
}

.www-agreement-dialog__block {
    margin: 0 0 1rem;
}

.www-agreement-dialog__block:last-child {
    margin-bottom: 0;
}

.www-agreement-dialog__block-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8eef5;
}

.www-agreement-dialog__frame {
    display: block;
    width: 100%;
    min-height: 28vh;
    background: #fff;
    border: 0;
}

.www-verify-code-dialog {
    max-width: min(26rem, 94vw);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.6rem;
    padding: 0;
    background: #0b0f14;
    color: #e8eef5;
}

.www-verify-code-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.www-verify-code-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.www-verify-code-dialog__body {
    padding: 0.85rem;
}

.www-verify-code-dialog__target {
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(126, 184, 255, 0.28);
    border-radius: 0.45rem;
    background: rgba(126, 184, 255, 0.08);
    color: #d8eaff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.www-verify-code-dialog__footer {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.www-auth-register-inline-verify {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.www-field--inline-email {
    flex: 0 0 70%;
    width: 70%;
    margin: 0;
}

.www-field--inline-phone {
    flex: 0 0 70%;
    width: 70%;
    margin: 0;
}

.www-auth-form__actions--inline-verify {
    flex: 0 0 30%;
    width: 30%;
    margin: 0;
}

.www-auth-form__actions--inline-verify .www-btn {
    width: 100%;
}

@media (max-width: 640px) {
    .www-auth-register-inline-verify {
        flex-direction: column;
        align-items: stretch;
    }

    .www-field--inline-email,
    .www-field--inline-phone,
    .www-auth-form__actions--inline-verify {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* 找回密码：动态码输入框与「发送验证码」同一行，输入区自适应剩余宽度 */
.www-auth-retrieve-verify-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.65rem;
    margin: 0 0 1rem;
    min-width: 0;
}

.www-field--retrieve-verify-code {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.www-auth-form__actions--retrieve-send {
    flex: 0 0 auto;
    margin: 0;
}

.www-auth-form__actions--retrieve-send .www-btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .www-auth-retrieve-verify-row {
        flex-wrap: wrap;
    }

    .www-field--retrieve-verify-code {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .www-auth-form__actions--retrieve-send {
        flex: 1 1 auto;
        width: 100%;
    }

    .www-auth-form__actions--retrieve-send .www-btn {
        width: 100%;
    }
}

/* 找回密码：发动态码成功后，在动态码输入区域下方展示接口返回的查收提示 */
.www-rp-send-otp-hint {
    margin: -0.35rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
}
