/* ============================================================
   文件名: auth.css
   创建时间: 2026-08-09
   功能描述: 前台独立认证页(登录/注册/找回密码)样式 — 复刻 Ynova Auth
   设计: #f5f7fa 背景 + 居中白色卡片 + 主色 #2B6DF3
   ============================================================ */
:root {
    --primary: #2B6DF3;
    --primary-hover: #1b4df0;
    --primary-bg: rgba(43, 109, 243, 0.1);
    --text: #1d2129;
    --text-secondary: #4e5969;
    --text-muted: #86909c;
    --border: #e5e6eb;
    --bg: #f5f7fa;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
}

.auth-logo {
    display: block;
    height: 44px;
    margin: 0 auto 28px;
}

.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 28px;
}

.auth-form .form-item { margin-bottom: 18px; }

.auth-form .form-control {
    width: 100%;
    height: auto; /* 覆盖 layui .layui-input 的固定 38px，保持与登录按钮等高，避免输入框被压缩 */
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 109, 243, 0.12); }
.auth-form .form-control::placeholder { color: var(--text-muted); }

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 4px;
}
.auth-btn:hover { background: var(--primary-hover); }
.auth-btn:disabled { background: var(--text-muted); cursor: not-allowed; }

.auth-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 16px;
}
.auth-checkbox-row label { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); cursor: pointer; }
.auth-checkbox-row input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.auth-link { color: var(--primary); text-decoration: none; }
.auth-link:hover { color: var(--primary-hover); }

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}
.auth-footer .auth-link { font-weight: 500; }

.auth-agreement {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 18px;
}

@media screen and (max-width: 480px) {
    .auth-card { padding: 28px 22px; }
}
