/* ============================================================
   auth.css —— 登录 / 注册 / 找回密码 / 我的账户 页面专属样式
   由这些页面的 page_css block 引入。延续站点浅色企业风格，
   居中卡片，严格遵循交互规范（尺寸 / 圆角 / 阴影 / 焦点光环）。
   ============================================================ */

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0 40px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .09);
    padding: 32px 28px 28px;
}

.auth-card .auth-brand {
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .auth-brand .auth-logo {
    font-size: 15px;
    letter-spacing: .5px;
    color: #2a6dd9;
    font-weight: 600;
}
.auth-card h1 {
    text-align: center;
    font-size: 1.35em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.auth-card .auth-sub {
    text-align: center;
    color: #999;
    font-size: .9em;
    margin-bottom: 24px;
}

/* —— 表单字段 —— */
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.auth-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: #bbb; }
.auth-field input:focus {
    outline: none;
    border-color: #2a6dd9;
    box-shadow: 0 0 0 3px rgba(42, 109, 217, .10);
}

/* —— 带右侧按钮的字段（如获取验证码）—— */
.auth-inline {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.auth-inline input { flex: 1; }
.auth-inline .auth-code-btn {
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid #cfe0fb;
    background: #eff6ff;
    color: #2a6dd9;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.auth-inline .auth-code-btn:hover { background: #dbeafe; }
.auth-inline .auth-code-btn:disabled {
    color: #9db6de;
    background: #f1f5fb;
    border-color: #e2e9f4;
    cursor: not-allowed;
}

/* —— 主按钮（整宽，严格规范）—— */
.auth-btn {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 7px;
    background: #2a6dd9;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .05s;
    margin-top: 4px;
}
.auth-btn:hover { background: #1d5bbf; }
.auth-btn:active { transform: scale(.98); }
.auth-btn:disabled { background: #a0bbf0; cursor: not-allowed; }

/* —— 错误 / 提示文字 —— */
.auth-error {
    color: #e53e3e;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    margin: 2px 0 12px;
}
.auth-note {
    color: #8a6d3b;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 12.5px;
    text-align: center;
    margin-bottom: 14px;
}

/* —— 底部切换链接 —— */
.auth-alt {
    text-align: center;
    margin-top: 18px;
    font-size: 13.5px;
    color: #777;
}
.auth-alt a { color: #2a6dd9; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-alt .auth-sep { color: #ccc; margin: 0 8px; }

/* —— 辅助说明行（如注册页的积分引导）—— */
.auth-hint {
    color: #999;
    font-size: 12.5px;
    margin-top: 8px;
    line-height: 1.6;
}

/* —— 账户页信息行（积分余额 / 单价 / 账号信息通用）——
   旧的「account-grid / account-card / badge-member」一组已随会员制退役删除，
   账户页新版式见 /static/css/account.css。—— */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14.5px;
}
.info-row:last-child { border-bottom: none; }
.info-row .info-key { color: #888; }
.info-row .info-val { color: #222; font-weight: 500; }

.section-title {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 22px 0 12px;
}

.auth-danger-link {
    color: #e53e3e;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    padding: 0;
}
.auth-danger-link:hover { text-decoration: underline; }
