@charset "utf-8";
/* ==========================================================================
   南服调度 · 产品登录页（nf.php）—— 简洁 · 大气 · 消防行业风
   独立样式表，不依赖 assets/css/style.css（避免后台全局表单规则干扰）
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nf-page {
    --nf-red: #e8352f;
    --nf-red-d: #c01f17;
    --nf-ember: #ff8a3d;
    --nf-ember-2: #ffb152;
    --nf-ink: #14110f;
    --nf-ink2: #2a241f;
    --nf-muted: #7c726a;
    --nf-line: #e9e3db;
    --nf-soft: #f6f3ef;
    --nf-shadow: 0 24px 60px rgba(20, 17, 15, .16);
    --nf-shadow-s: 0 8px 24px rgba(20, 17, 15, .08);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--nf-ink2);
    background: #f5f6f8;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
a { color: inherit; }

.nf-app { display: flex; min-height: 100vh; min-height: 100dvh; }

/* ---------- 左：品牌区 ---------- */
.nf-brand {
    position: relative;
    flex: 0 0 30%;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 40px 38px;
    color: var(--nf-ink2);
    background:
        radial-gradient(120% 80% at 12% 0%, rgba(255, 138, 61, .16), transparent 55%),
        radial-gradient(120% 90% at 100% 100%, rgba(232, 53, 47, .12), transparent 55%),
        linear-gradient(160deg, #fff6f1 0%, #fffdfb 100%);
}
/* 细网格纹理，营造工业/指挥中心质感 */
.nf-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(rgba(20, 17, 15, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 17, 15, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(120% 100% at 30% 18%, #000, transparent 78%);
            mask-image: radial-gradient(120% 100% at 30% 18%, #000, transparent 78%);
}
.nf-brand-glow {
    position: absolute;
    width: 480px; height: 480px;
    right: -140px; top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 61, .22), transparent 62%);
    filter: blur(10px);
    pointer-events: none;
}
/* 左品牌区右侧：竖向 红→橙 渐变光带（风格 D：编辑感留白） */
.nf-brand-accent {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--nf-red) 0%, var(--nf-ember-2) 100%);
    box-shadow: 0 0 26px rgba(232, 53, 47, .55);
    pointer-events: none;
}
.nf-brand-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.nf-brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nf-ink); }
.nf-brand-logo img { width: 40px; height: 40px; border-radius: 11px; background: rgba(232, 53, 47, .08); padding: 5px; }
.nf-brand-logo span { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.nf-brand-body { position: relative; z-index: 2; margin: auto 0; padding: 40px 0; }
.nf-brand-mark { display: block; width: 160px; height: 160px; margin: 0 auto 30px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(232, 53, 47, .28)); }
.nf-brand-flame { width: 42px; height: 42px; margin: 0 auto 34px; }
.nf-brand-title {
    margin: 0 0 22px;
    font-size: clamp(36px, 3.8vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: .5px;
    color: var(--nf-ink);
}
.nf-brand-sub { margin: 0; max-width: 30ch; font-size: 16px; line-height: 1.9; color: var(--nf-muted); }
.nf-brand-foot { position: relative; z-index: 2; margin-top: auto; font-size: 13px; color: rgba(20, 17, 15, .5); letter-spacing: .3px; }

/* ---------- 右：登录区 ---------- */
.nf-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; background: #f5f6f8; }
.nf-main-top { height: 68px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 44px; }
.nf-main-top a { color: var(--nf-ink2); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.nf-main-top a:hover { color: var(--nf-red); }
.nf-top-user { color: var(--nf-ink2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }

.nf-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 24px 8px; }
.nf-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--nf-line);
    border-radius: 24px;
    box-shadow: var(--nf-shadow);
    padding: 44px 40px 36px;
}
.nf-card-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.nf-card-hd img { width: 30px; height: 30px; border-radius: 8px; }
.nf-card-hd span { font-size: 16px; font-weight: 800; letter-spacing: .5px; color: var(--nf-ink); }
.nf-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; color: var(--nf-ink); letter-spacing: .5px; }
.nf-card .nf-sub { margin: 0 0 28px; font-size: 13.5px; color: var(--nf-muted); }
.nf-form { margin-top: 4px; }

/* ---------- 表单 ---------- */
.nf-field { margin-bottom: 18px; }
.nf-field > label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: var(--nf-ink2); }
.nf-input { position: relative; display: block; }
.nf-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #a8b2c0; pointer-events: none; }
.nf-input > input {
    width: 100%; height: 50px; padding: 0 14px 0 44px;
    border: 1.5px solid var(--nf-line); border-radius: 13px;
    background: #fbfcfe; color: var(--nf-ink);
    font-family: inherit; font-size: 15px; letter-spacing: .5px;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.nf-input > input::placeholder { color: #b3bcc9; letter-spacing: 0; }
.nf-input > input:focus { outline: none; background: #fff; border-color: var(--nf-red); box-shadow: 0 0 0 4px rgba(232, 53, 47, .10); }
.nf-input > input.nf-has-eye { padding-right: 48px; }
.nf-eye {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 9px; background: transparent; cursor: pointer;
    color: #9aa4b2; transition: color .16s, background .16s;
}
.nf-eye:hover { color: var(--nf-red); background: var(--nf-soft); }
.nf-eye svg { width: 18px; height: 18px; display: block; }
.nf-eye .nf-eye-shut { display: none; }
.nf-eye.is-on .nf-eye-open { display: none; }
.nf-eye.is-on .nf-eye-shut { display: block; }
.nf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 22px; }
.nf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--nf-ink2); cursor: pointer; user-select: none; }
.nf-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--nf-red); cursor: pointer; }
.nf-row a { font-size: 13.5px; color: var(--nf-muted); text-decoration: none; }
.nf-row a:hover { color: var(--nf-red); text-decoration: underline; }

/* ---------- 按钮 ---------- */
.nf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 24px;
    border: 0; border-radius: 12px; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .5px;
    color: #fff; text-decoration: none; white-space: nowrap;
    background: linear-gradient(135deg, var(--nf-ember-2), var(--nf-red));
    box-shadow: 0 10px 22px rgba(232, 53, 47, .30);
    transition: transform .16s, box-shadow .16s, filter .16s;
}
.nf-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(232, 53, 47, .36); }
.nf-btn:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(232, 53, 47, .28); }
.nf-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.nf-btn-sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.nf-btn-block { width: 100%; height: 52px; font-size: 16.5px; border-radius: 13px; }
.nf-btn-ghost { background: #fff; color: var(--nf-ink2); border: 1.5px solid var(--nf-line); box-shadow: none; }
.nf-btn-ghost:hover { color: var(--nf-red); border-color: rgba(232, 53, 47, .45); box-shadow: none; }

/* ---------- 提示 ---------- */
.nf-alert {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 0 0 16px; padding: 11px 13px; border-radius: 11px;
    font-size: 13.5px; line-height: 1.5;
    background: #fff2f1; border: 1px solid #f9d3d0; color: #b31d16;
}
.nf-alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.nf-card-foot {
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nf-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12.5px; color: #9aa4b2;
}
.nf-card-foot a { color: var(--nf-ink2); text-decoration: none; }
.nf-card-foot a:hover { color: var(--nf-red); }

/* ---------- 已登录用户面板 ---------- */
.nf-user { text-align: center; }
.nf-user-avatar {
    width: 90px; height: 90px; margin: 4px auto 14px;
    border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, #ffe3e0, #ffd0cc);
    border: 3px solid #fff; box-shadow: 0 12px 26px rgba(232, 53, 47, .22);
}
.nf-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-user h1 { margin: 10px 0 6px; font-size: 24px; color: var(--nf-ink); }
.nf-user .nf-role { margin: 0; font-size: 14.5px; color: var(--nf-red-d); font-weight: 700; }
.nf-user .nf-desc { margin: 8px 0 0; font-size: 13px; color: var(--nf-muted); }
.nf-user-acts { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--nf-line); display: flex; flex-direction: column; gap: 12px; }
.nf-user-acts .nf-btn-block { height: 52px; font-size: 16.5px; }
.nf-user-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--nf-soft); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; }
.nf-user-foot a { color: var(--nf-ink2); text-decoration: none; }
.nf-user-foot a:hover { color: var(--nf-red); }
.nf-user-foot .nf-sep { color: var(--nf-line); }

/* ---------- 底部页脚（右栏） ---------- */
.nf-foot {
    margin-top: auto; padding: 18px 44px 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13px; color: var(--nf-muted);
}
.nf-foot a { color: var(--nf-muted); text-decoration: none; }
.nf-foot a:hover { color: var(--nf-red); }
.nf-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .nf-app { flex-direction: column; }
    .nf-brand { flex: none; max-width: none; min-height: 210px; padding: 30px 28px 26px; }
    .nf-brand-glow { width: 320px; height: 320px; right: -90px; top: -110px; }
    .nf-brand-body { margin: auto 0; padding: 20px 0; }
    .nf-brand-mark { width: 96px; height: 96px; margin: 0 auto 16px; }
    .nf-brand-flame { width: 38px; height: 38px; margin: 0 auto 12px; }
    .nf-brand-title { font-size: 30px; }
    /* 移动端：竖向光带转为底部横向光带 */
    .nf-brand-accent { width: 100%; height: 4px; top: auto; bottom: 0; right: 0; background: linear-gradient(90deg, var(--nf-red), var(--nf-ember-2)); box-shadow: 0 0 18px rgba(232, 53, 47, .45); }
    .nf-brand-sub { font-size: 14px; }
    .nf-brand-foot { display: none; }
    .nf-main-top { padding: 0 24px; height: 58px; }
    .nf-card { box-shadow: var(--nf-shadow-s); padding: 28px 22px 24px; }
}
@media (max-width: 620px) {
    .nf-main-top { padding: 0 16px; }
    .nf-main-top a { font-size: 13.5px; }
    .nf-center { padding: 16px 16px 4px; }
    .nf-card { border-radius: 18px; }
    .nf-card-hd img { width: 26px; height: 26px; }
    .nf-card-hd span { font-size: 15px; }
    .nf-card h2 { font-size: 21px; }
    .nf-input > input { height: 48px; font-size: 16px; }   /* iOS：≥16px 避免聚焦放大 */
    .nf-btn-block { height: 50px; font-size: 16px; }
    .nf-foot { padding: 16px; justify-content: center; text-align: center; flex-direction: column; }
    .nf-user-avatar { width: 78px; height: 78px; }
    .nf-user h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
