/* ============================
   Auth Pages (Login / Register)
   ============================ */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 64px - 120px);
    padding: 40px 20px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    padding: 40px 36px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-title {
    font-size: 24px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 8px;
}
.auth-subtitle { font-size: 14px; color: #999; }

/* 表单字段 */
.auth-field { margin-bottom: 20px; }
.auth-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #555; margin-bottom: 6px;
}
.auth-input-wrap {
    display: flex; align-items: center;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    padding: 0 14px; height: 46px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input-wrap:focus-within {
    border-color: #4e6ef2; background: #fff;
    box-shadow: 0 0 0 3px rgba(78,110,242,0.1);
}
.auth-input-wrap > i.fa {
    color: #bbb; font-size: 15px; width: 20px; text-align: center;
    flex-shrink: 0; transition: color 0.2s;
}
.auth-input-wrap:focus-within > i.fa { color: #4e6ef2; }
.auth-input-wrap input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 0 10px; height: 100%; font-size: 14px; color: #333;
}
.auth-input-wrap input::placeholder { color: #c0c0c0; }

/* 密码显示/隐藏 */
.auth-eye {
    border: none; background: transparent; cursor: pointer;
    padding: 4px; color: #bbb; font-size: 15px;
    transition: color 0.2s; flex-shrink: 0;
}
.auth-eye:hover { color: #666; }

/* 提交按钮 */
.auth-submit {
    display: block; width: 100%; height: 46px;
    border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #4e6ef2, #2b7de9);
    color: #fff; font-size: 15px; font-weight: 600;
    letter-spacing: 4px; margin-top: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(78,110,242,0.25);
}
.auth-submit:hover {
    opacity: 0.92;
    box-shadow: 0 6px 24px rgba(78,110,242,0.35);
}
.auth-submit:active { transform: scale(0.98); }
.auth-submit.is-loading {
    opacity: 0.7; pointer-events: none; letter-spacing: 2px;
}

.auth-forgot {
    text-align: right;
    margin: -8px 0 16px;
}
.auth-forgot a {
    font-size: 13px;
    color: #4e6ef2;
    text-decoration: none;
}
.auth-forgot a:hover { color: #2b5dd6; }

/* 底部链接 */
.auth-footer {
    text-align: center; margin-top: 24px;
    font-size: 13px; color: #999;
}
.auth-footer a {
    color: #4e6ef2; font-weight: 500;
    transition: color 0.2s;
}
.auth-footer a:hover { color: #2b5dd6; }

/* Auth 响应式 */
@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; border-radius: 12px; }
    .auth-title { font-size: 20px; }
    .auth-input-wrap { height: 42px; }
    .auth-submit { height: 42px; font-size: 14px; }
}

/* 内核注册插件输出独立输入框，复用认证卡片的尺寸和间距。 */
.auth-theme-page .auth-extra-fields:empty { display: none; }
.auth-theme-page .auth-extra-fields > div { margin-bottom: 20px; }
.auth-theme-page .auth-extra-fields .auth-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    background: #fafafa;
    color: #333;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-theme-page .auth-extra-fields .auth-input::placeholder { color: #c0c0c0; }
.auth-theme-page .auth-extra-fields .auth-input:focus {
    border-color: #4e6ef2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78, 110, 242, .1);
}
.auth-theme-page .auth-extra-fields .erv-code { align-items: stretch; }
.auth-theme-page .auth-extra-fields .erv-send { border-radius: 10px; }

/* 默认主题的卡片布局；输入字号和扩展控件保留手机浏览器兼容修复。 */
.auth-card { min-width: 0; }
.auth-input-wrap input { min-width: 0; font-size: 16px; }
.auth-eye:focus-visible {
    outline: 2px solid #4e6ef2;
    outline-offset: 2px;
    border-radius: 4px;
}
.auth-theme-page .bc-social__btn { height: 44px; }
@media (max-width: 480px) {
    .auth-theme-page .auth-extra-fields .auth-input { height: 42px; }
    .auth-theme-page .auth-extra-fields .erv-send { padding-right: 10px; padding-left: 10px; }
    .auth-theme-page .bc-social__btn:not(.bc-social__btn--only) { flex-basis: calc(50% - 4px); }
}
