* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fdecec 0%, #f9d6d6 45%, #efb3b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    min-height: 100vh;
}

/* ---------- 卡片 ---------- */
.login-box {
    width: 380px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 40px 36px 30px;
}

/* ---------- 头部 ---------- */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-header .login-logo {
    display: block;
    height: 56px;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 16px;
}
.login-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
}
.login-header p {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ---------- 表单 ---------- */
.login-body { margin-top: 24px; }

.field { margin-bottom: 16px; }
.field label { display: none; }
.field input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
    transition: all .15s;
    background: #fff;
    color: #333;
}
.field input::placeholder { color: #c2c2c2; }
.field input:focus {
    border-color: #e91e1e;
    box-shadow: 0 0 0 2px rgba(233, 30, 30, .1);
}

.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img {
    width: 110px;
    height: 38px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #e6e6e6;
    background: #f5f5f5;
    display: block;
}

/* ---------- 按钮 ---------- */
.btn-login {
    width: 100%;
    height: 38px;
    background: #e91e1e;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s;
}
.btn-login:hover   { background: #d31515; }
.btn-login:active  { background: #b71111; }
.btn-login:disabled { background: #f3a0a0; cursor: not-allowed; }

/* ---------- 提示 ---------- */
.login-msg {
    text-align: center;
    font-size: 12px;
    min-height: 18px;
    margin-bottom: 12px;
    line-height: 18px;
}
.login-msg.error   { color: #ff5722; }
.login-msg.success { color: #67c23a; }

/* ---------- 底部 ---------- */
.login-footer {
    text-align: center;
    font-size: 12px;
    color: #c2c2c2;
    margin-top: 28px;
}
