/* ======================
   Auth Pages Only
   ====================== */

body.auth {
    background: #f5f7fb;
}

.container {
    max-width: 420px;
    margin: 80px auto;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.container h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    border: none;
    font-weight: 600;
}

.button.secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.notice {
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 10px;
}

.link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

/* ===== 表单基础 ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== 输入框 & 下拉框统一样式 ===== */
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 聚焦态 */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* 下拉框特有微调（防止太“原生”） */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gray-500) 50%),
        linear-gradient(135deg, var(--gray-500) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* ===== 只读输入框（注册页专用） ===== */
.form-group input[readonly] {
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: not-allowed;
}

/* 鼠标悬停提示“这是系统字段” */
.form-group input[readonly]:hover {
    border-color: var(--gray-300);
}

/* 禁止聚焦高亮（避免误以为能改） */
.form-group input[readonly]:focus {
    box-shadow: none;
    border-color: var(--gray-300);
}

/* ===== 完全锁定的只读字段（推荐） ===== */
.form-group input[readonly] {
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: not-allowed;
}

/* 禁止获取焦点 */
.form-group input[readonly]:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--gray-300);
}

/* 真正禁止鼠标交互 */
.form-group input[readonly] {
    pointer-events: none;
}

/* ===== auth 表单控件彻底对齐修复 ===== */
.container input,
.container select,
.container button {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-lg);
}
