/* ============================================================
 * 会员注册 / 登录页样式（AmazeUI 之上的定制层）
 * 独立页面：不套网站头部/底部，卡片全屏居中
 * ============================================================ */

/* 独立页全屏背景（淡蓝渐变，突出卡片） */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #eaf2fc 0%, #f4f8fd 45%, #e8f0fb 100%);
    padding: 40px 0;
}

/* 居中卡片 */
.auth-card {
    width: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(28, 78, 150, .12);
    overflow: hidden;
}

/* 卡片头部品牌区 */
.auth-card .auth-head {
    padding: 36px 40px 28px;
    text-align: center;
    background: linear-gradient(135deg, #1c6ce0 0%, #3a8dde 55%, #4aa3f0 100%);
    color: #fff;
}

.auth-card .auth-head .auth-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
}

.auth-card .auth-head .auth-sub {
    margin-top: 8px;
    font-size: 13px;
    opacity: .85;
}

/* 表单主体 */
.auth-card .auth-body {
    padding: 32px 40px 36px;
}

/* 表单组：图标 + 输入框 */
.auth-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-group .auth-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: 16px;
    pointer-events: none;
}

.auth-group .am-form-field {
    height: 46px;
    padding-left: 40px;
    border-radius: 8px;
    border-color: #e2e8f0;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.auth-group .am-form-field:focus {
    border-color: #1c6ce0;
    box-shadow: 0 0 0 3px rgba(28, 108, 224, .12);
}

/* 行内组合：输入框 + 按钮（验证码行） */
.auth-inline {
    display: flex;
    gap: 10px;
}

.auth-inline .auth-group {
    flex: 1;
    margin-bottom: 0;
}

/* 图形验证码图片（点击刷新） */
.auth-captcha-img {
    flex-shrink: 0;
    width: 132px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #f8fafc;
}

.auth-inline .auth-btn-code {
    flex-shrink: 0;
    width: 128px;
    height: 46px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1558c0, #0f4aad); /* 实心深蓝，醒目 */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(21, 88, 192, .35);
}

.auth-inline .auth-btn-code:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f4aad, #0c3f96);
    box-shadow: 0 4px 14px rgba(21, 88, 192, .45);
}

.auth-inline .auth-btn-code:disabled {
    background: #cbd5e1;
    color: #f1f5f9;
    box-shadow: none;
    cursor: not-allowed;
}

/* 协议 / 免登录 行 */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 13px;
    color: #64748b;
}

.auth-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.auth-row a {
    color: #1c6ce0;
    text-decoration: none;
}

.auth-row a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1c6ce0, #3a8dde);
    color: #fff;
    font-size: 16px;
    letter-spacing: 6px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.auth-submit:hover:not(:disabled) {
    opacity: .92;
}

.auth-submit:active:not(:disabled) {
    transform: scale(.99);
}

.auth-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* 底部引导链接 */
.auth-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.auth-foot a {
    color: #1c6ce0;
    text-decoration: none;
}

.auth-foot-split {
    margin: 0 8px;
    color: #cbd5e1;
}

/* 字段错误提示 */
.auth-tip {
    display: none;
    margin: -10px 0 12px;
    font-size: 12px;
    color: #e64545;
}

.auth-tip.show {
    display: block;
}

/* 全局轻提示 */
.auth-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 220px;
    max-width: 420px;
    padding: 12px 22px;
    border-radius: 8px;
    background: rgba(30, 41, 59, .92);
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.auth-toast.show {
    opacity: 1;
}

.auth-toast.success {
    background: rgba(22, 163, 74, .95);
}

.auth-toast.error {
    background: rgba(220, 38, 38, .95);
}
