/* ==================================================================
   五谷峰登会员管理系统 · 登录页
   色系：暖金 + 米白（与员工列表 / 小程序用户中心一套色板）
   ================================================================== */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f7f5f1;
    color: #2b2313;
    overflow: hidden;
}

/* ---------- 背景暖金光晕 ---------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}

.bg-glow--1 {
    width: 460px;
    height: 460px;
    left: -120px;
    top: -140px;
    background: radial-gradient(circle, #f9d99a 0%, rgba(249, 217, 154, 0) 70%);
}

.bg-glow--2 {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -180px;
    background: radial-gradient(circle, #eeddc0 0%, rgba(238, 221, 192, 0) 70%);
}

/* ---------- 布局 ---------- */
.wrap {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.card {
    width: 400px;
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(90, 60, 20, 0.12), 0 2px 8px rgba(90, 60, 20, 0.05);
    padding: 34px 34px 22px;
}

/* ---------- 品牌区 ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.brand__logo {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-image: linear-gradient(135deg, #eab963 0%, #d1922f 60%, #b8801f 100%);
    box-shadow: 0 8px 18px rgba(184, 128, 31, 0.28);
    color: #fffdf6;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #2b2313;
    line-height: 1.3;
}

.brand__sub {
    margin: 3px 0 0;
    font-size: 12px;
    color: #a89f92;
    letter-spacing: 0.5px;
}

/* ---------- 提示条 ---------- */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background-color: #fff8ec;
    border: 1px solid rgba(231, 154, 46, 0.3);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 16px;
}

.notice__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #e0a94a;
    margin-top: 6px;
}

.notice__text {
    font-size: 12px;
    line-height: 1.6;
    color: #b06b12;
    word-break: break-all;
}

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 15px; }

.field { display: block; }

.field__label {
    display: block;
    font-size: 12.5px;
    color: #7d7365;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.field__input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e8e1d5;
    border-radius: 10px;
    background-color: #fcfaf6;
    font-size: 14.5px;
    color: #2b2313;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field__input::placeholder { color: #bcb3a4; }

.field__input:focus {
    border-color: #d9a557;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 185, 99, 0.22);
}

/* ---------- 验证码行：输入 + 图片 ---------- */
.field--captcha {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.captcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.captcha__img {
    display: block;
    border: 1px solid #e8e1d5;
    border-radius: 8px;
    background-color: #fdf6e8;
    cursor: pointer;
    width: 132px;     /* 图片本身 212x81，这里缩到跟输入框等高更好看 */
    height: 50px;
    object-fit: cover;
}

.captcha__refresh {
    border: 0;
    background: none;
    padding: 0;
    font-size: 11.5px;
    color: #b06b12;
    cursor: pointer;
}

.captcha__refresh:hover { text-decoration: underline; }

.hint {
    margin: -3px 0 0;
    font-size: 11.5px;
    color: #a89f92;
    line-height: 1.6;
}

.hint b { color: #b06b12; font-weight: 600; }

/* ---------- 提交按钮 ---------- */
.submit {
    height: 44px;
    border: 0;
    border-radius: 10px;
    background-image: linear-gradient(135deg, #eab963 0%, #d1922f 60%, #b8801f 100%);
    box-shadow: 0 8px 18px rgba(184, 128, 31, 0.26);
    color: #fffdf6;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.05s;
}

.submit:hover { filter: brightness(1.05); }
.submit:active { transform: translateY(1px); }

.submit[disabled] {
    filter: grayscale(0.35) brightness(0.98);
    cursor: not-allowed;
}

/* ---------- 错误提示（行内） ---------- */
.error {
    background-color: #fdeeee;
    border: 1px solid rgba(220, 90, 80, 0.3);
    color: #b03a30;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.6;
    word-break: break-all;
}

/* ---------- 页脚 ---------- */
.foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: 11px;
    color: #b8b0a2;
    letter-spacing: 0.5px;
}
