/* Login / Register / Forgot password — shared layout (scoped to .auth-page) */
.auth-page .login-inp {
    display: flex;
    align-items: center;
    padding: 0 14px 0 18px;
    min-height: 46px;
    box-sizing: border-box;
}
.auth-page .login-inp label,
.auth-page .login-inp .auth-label {
    flex: 0 0 auto;
    min-width: 82px;
    max-width: 108px;
    text-align: left;
    margin: 0;
    padding-left: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #334155 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auth-page .login-inp label.label-wide,
.auth-page .login-inp .auth-label.label-wide {
    min-width: 92px;
    max-width: 118px;
}
.auth-page .login-inp input,
.auth-page .login-inp textarea {
    flex: 1;
    min-width: 0;
    width: auto !important;
    padding-left: 14px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a !important;
    line-height: 40px;
    background-color: transparent !important;
}
.auth-page .login-inp input::placeholder,
.auth-page .login-inp textarea::placeholder {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}
.auth-page .login-inp input:-webkit-autofill {
    -webkit-text-fill-color: #0f172a !important;
}
.auth-page .login-inp.code-row {
    flex-wrap: nowrap;
    gap: 8px;
    padding-right: 10px;
}
.auth-page .login-inp.code-row label,
.auth-page .login-inp.code-row .auth-label {
    min-width: 52px;
    max-width: 72px;
    flex-shrink: 0;
}
.auth-page .login-inp.code-row input.code-input {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 8px;
}
.auth-page .btn-send-code {
    flex: 0 0 auto;
    background: #704eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    height: 32px;
    line-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.auth-page .btn-send-code:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.auth-page .auth-hint {
    margin: -5px auto 10px;
    width: 80%;
    font-size: 11px;
    color: #64748b;
    line-height: 1.45;
}
.auth-page .auth-link-row {
    width: 80%;
    margin: 0 auto 10px;
    text-align: right;
    font-weight: 600;
}
.auth-page .auth-link-row a {
    color: #5b21b6 !important;
    font-weight: 600;
}
.auth-page .auth-footer-link {
    color: #5b21b6 !important;
    font-weight: 600;
}
.auth-page .auth-google-wrap {
    margin: 12px 30px 0;
    display: flex;
    justify-content: center;
    min-height: 44px;
}
.auth-page .auth-google-wrap:not(.auth-google-ready) {
    visibility: hidden;
    pointer-events: none;
}
.auth-page .auth-google-native-proxy {
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.auth-page .auth-divider {
    margin: 14px 30px 0;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}
.auth-page .auth-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}
.auth-page .auth-divider::before {
    content: '';
    display: block;
    height: 1px;
    background: #e2e8f0;
    margin-top: -8px;
}

/* 中文标签略宽，避免截断 */
html[data-site-lang="zh-CN"] .auth-page .login-inp label,
html[data-site-lang="zh-CN"] .auth-page .login-inp .auth-label {
    min-width: 72px;
    max-width: 96px;
    font-size: 15px;
}
html[data-site-lang="zh-CN"] .auth-page .login-inp label.label-wide,
html[data-site-lang="zh-CN"] .auth-page .login-inp .auth-label.label-wide {
    min-width: 80px;
    max-width: 104px;
}
html[data-site-lang="zh-CN"] .auth-page .login-inp.code-row label,
html[data-site-lang="zh-CN"] .auth-page .login-inp.code-row .auth-label {
    min-width: 68px;
    max-width: 80px;
}

/* 登录/注册页右上角语言切换（白底，与页面背景一致） */
.auth-page {
    position: relative;
}
.auth-page .auth-lang-switch {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 10px;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
}
.auth-page .auth-lang-switch .lang-globe {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 2px;
}
.auth-page .auth-lang-switch .lang-sep {
    color: #cbd5e1;
    font-size: 12px;
    padding: 0 2px;
    line-height: 1;
}
.auth-page .auth-lang-switch button {
    border: 0;
    background: transparent;
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    line-height: 1;
}
.auth-page .auth-lang-switch button.active {
    background: #704eea;
    color: #fff;
}
