/* ============================================================
   鹭职通平台 · 登录/注册独立页 v2.0（藏青鎏金 · 政务高端风）
   深藏青画布 #0c2340 + 鎏金强调 #f59e0b + 网格线 + 光晕，桌面双栏 / 移动单栏
   ============================================================ */
:root {
    --cy: #f59e0b;
    --cy-deep: #d97706;
    --bl: #3b82f6;
    --vio: #3267b0;
    --grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    --bg: #0c2340;
    --panel: rgba(12, 35, 64, .85);
    --line: rgba(255, 255, 255, .12);
    --text: #e6edf5;
    --muted: #9eb8da;
    --glow: 0 0 28px rgba(245, 158, 11, .2);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.auth-body {
    font: 14px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text); background: var(--bg);
    min-height: 100vh; overflow-x: hidden;
}

/* ---------- 背景层：光晕 + 网格 ---------- */
.auth-orb { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .5; z-index: 0; pointer-events: none; }
.auth-orb-1 { width: 520px; height: 520px; background: rgba(245, 158, 11, .22); top: -180px; left: -140px; }
.auth-orb-2 { width: 460px; height: 460px; background: rgba(28, 58, 106, .8); bottom: -180px; right: -120px; }
.auth-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(245, 158, 11, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}
.auth-stage { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 18px; }

/* ---------- 主卡：左品牌 + 右表单 ---------- */
.auth-card {
    width: 920px; max-width: 100%; display: flex; border-radius: 22px; overflow: hidden;
    background: var(--panel); border: 1px solid rgba(245, 158, 11, .2);
    box-shadow: 0 30px 90px rgba(2, 10, 26, .8), var(--glow);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.auth-brand {
    flex: 0 0 42%; padding: 46px 38px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(217, 119, 6, .22) 0%, rgba(28, 58, 106, .5) 55%, rgba(17, 37, 71, .6) 100%);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.auth-brand::after {
    content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    right: -80px; bottom: -80px; background: var(--grad); opacity: .14; filter: blur(6px);
}
.auth-logo {
    width: 54px; height: 54px; border-radius: 15px; background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 27px; font-weight: 800; color: #0c2340;
    box-shadow: 0 10px 30px rgba(245, 158, 11, .4);
}
.auth-brand h1 { font-size: 25px; font-weight: 800; letter-spacing: 2px; margin-top: 20px; }
.auth-brand .slogan { color: rgba(230, 237, 245, .72); font-size: 13.5px; margin-top: 8px; line-height: 1.9; }
.auth-feats { margin-top: auto; padding-top: 30px; }
.auth-feat { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; font-size: 13.5px; color: rgba(230, 237, 245, .88); }
.auth-feat .fi {
    flex: 0 0 30px; height: 30px; border-radius: 9px; font-size: 14px;
    background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .35);
    display: flex; align-items: center; justify-content: center;
}
.auth-feat b { display: block; font-size: 13.5px; color: #fff; }
.auth-feat span { display: block; font-size: 12px; color: rgba(230, 237, 245, .55); }

/* ---------- 表单区 ---------- */
.auth-form { flex: 1; padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.auth-form .auth-sub { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }

.a-item { margin-bottom: 16px; }
.a-item > label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 7px; letter-spacing: 1px; }
.a-item input {
    width: 100%; border: 1px solid var(--line); border-radius: 11px;
    background: rgba(6, 20, 40, .6); color: var(--text);
    padding: 12px 14px; font-size: 14.5px; font-family: inherit; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.a-item input::placeholder { color: #5d76a3; }
.a-item input:focus { border-color: var(--cy); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16); }
.a-code-row { display: flex; gap: 10px; }
.a-code-row input { flex: 1; }

.a-btn {
    width: 100%; border: none; cursor: pointer; border-radius: 11px;
    padding: 13px; font-size: 15.5px; font-weight: 800; letter-spacing: 4px;
    color: #0c2340; background: var(--grad);
    box-shadow: 0 10px 26px rgba(245, 158, 11, .35);
    transition: transform .12s, opacity .15s, box-shadow .2s;
}
.a-btn:hover { box-shadow: 0 12px 32px rgba(245, 158, 11, .5); }
.a-btn:active { transform: scale(.98); }
.a-btn:disabled { opacity: .55; cursor: not-allowed; }
.a-btn-sm {
    flex: 0 0 auto; border: 1px solid rgba(245, 158, 11, .45); border-radius: 10px;
    background: rgba(245, 158, 11, .1); color: var(--cy);
    padding: 0 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .15s;
}
.a-btn-sm:hover { background: rgba(245, 158, 11, .2); }
.a-btn-sm:disabled { opacity: .5; cursor: not-allowed; }

.a-tip { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.a-tip a { color: var(--cy); font-weight: 700; text-decoration: none; }
.a-tip a:hover { text-decoration: underline; }
.a-dev {
    background: rgba(245, 158, 11, .08); border: 1px dashed rgba(245, 158, 11, .4);
    border-radius: 10px; padding: 9px 13px; font-size: 12.5px; color: var(--cy); margin-bottom: 14px;
}

/* ---------- 注册身份选择 ---------- */
.a-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a-role {
    border: 1px solid var(--line); border-radius: 13px; padding: 14px 8px 12px;
    text-align: center; cursor: pointer; background: rgba(6, 20, 40, .5);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.a-role:hover { border-color: rgba(245, 158, 11, .45); }
.a-role.on {
    border-color: var(--cy); background: rgba(245, 158, 11, .1);
    box-shadow: 0 0 18px rgba(245, 158, 11, .22);
}
.a-role .ri { font-size: 24px; }
.a-role .rt { font-size: 13.5px; font-weight: 700; margin-top: 5px; }
.a-role .rd { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .auth-card { flex-direction: column; width: 480px; }
    .auth-brand { flex: none; border-right: none; border-bottom: 1px solid var(--line); padding: 32px 30px 26px; }
    .auth-brand h1 { margin-top: 14px; font-size: 21px; }
    .auth-feats { display: none; }
    .auth-form { padding: 30px 26px; }
}

/* ---------- 轻提示（必须用 class 控制显隐，内联 opacity 会压过 .show） ---------- */
.a-toast {
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-10px);
    background: rgba(10, 26, 50, .96); border: 1px solid rgba(245, 158, 11, .42);
    color: #e6edf5; padding: 10px 22px; border-radius: 24px; font-size: 13.5px;
    z-index: 300; opacity: 0; pointer-events: none; transition: all .22s;
    box-shadow: 0 10px 30px rgba(2, 10, 26, .6); max-width: 82vw; text-align: center; line-height: 1.55;
}
.a-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.a-toast.bad { border-color: rgba(248, 113, 113, .65); color: #fecaca; }
.a-dev-err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); color: #fca5a5; }

/* ---- v2.2 登录方式切换 tabs ---- */
.a-tabs { display:flex; gap:8px; margin:0 0 18px; background:rgba(9,26,50,.55); border:1px solid rgba(148,163,184,.18); border-radius:10px; padding:4px; }
.a-tab { flex:1; padding:9px 0; font-size:13.5px; color:#94a3b8; background:transparent; border:0; border-radius:8px; cursor:pointer; transition:all .18s; }
.a-tab.on { background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#0c2340; font-weight:700; }
.a-item input[type="password"] { letter-spacing:.12em; }
