/* 浅色主题登录卡片 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    background: linear-gradient(135deg, #eef4ff 0%, #f7fbff 55%, #eefcf4 100%);
    color: #1f2937;
}

.card {
    width: 400px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 32px 20px;
    box-shadow: 0 12px 40px rgba(31, 41, 55, .12);
}

h1 { font-size: 24px; text-align: center; }
.sub { text-align: center; color: #6b7280; font-size: 13px; margin: 6px 0 22px; }

/* 静态演示声明条：浅琥珀底，与蓝色界面区分但不刺眼 */
.static-note {
    margin: -8px 0 20px;
    padding: 10px 14px;
    background: #fff7e3;
    border: 1px solid #eddcb0;
    border-left: 3px solid #d9a441;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.75;
    color: #7a5a17;
    text-align: left;
}
.static-note b { color: #64480c; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; }
.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.captcha-box {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}
#captchaImg {
    width: 320px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 320 / 300;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    cursor: pointer;
    object-fit: cover;
}

button {
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: filter .15s, transform .05s;
}
button:active { transform: translateY(1px); }
.primary {
    width: 100%;
    padding: 12px;
    margin-top: 4px;
    background: #3b82f6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
}
.primary:hover { filter: brightness(1.05); }
.ghost {
    padding: 8px 14px;
    background: #eef2ff;
    color: #3b82f6;
    white-space: nowrap;
}
.ghost:hover { filter: brightness(.97); }

.msg { min-height: 20px; margin-top: 12px; font-size: 13px; text-align: center; }
.msg.err { color: #dc2626; }
.msg.ok  { color: #16a34a; }

/* ===== 演示账号提示（低调版，仅课堂演示用，正式产品应删除） ===== */
.demo-tip {
    margin: 14px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}
.demo-sep { margin: 0 6px; color: #d1d5db; }
.demo-tip code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: #6b7280;
    padding: 1px 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.demo-tip code:hover { color: #2563eb; background: #eef2ff; }

.ok-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 14px;
}
.welcome { text-align: center; font-size: 16px; margin-bottom: 16px; }
#homeView .ghost { display: block; margin: 0 auto; }

.foot {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

/* 备案号：管局要求悬挂并链接到工信部备案官网，所以颜色不做得太淡 */
.foot .beian {
    display: inline-block;
    margin-top: 8px;
    color: #6b7280;
    text-decoration: none;
}

.foot .beian:hover {
    color: #374151;
    text-decoration: underline;
}
