/* ============================================================
   login-theme.css — 管理端登录页（IoT SIM / MIFI 主题）
   深色科技风：渐变夜空 + 网络节点 + MIFI 设备/SIM 卡插画
   仅登录页使用，不影响其他页面
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 背景层 ---------- */
.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(47, 107, 255, .28), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(2, 132, 199, .22), transparent 60%),
        linear-gradient(135deg, #070f24 0%, #0b1e3f 45%, #10294f 100%);
    overflow: hidden;
}

/* 网格线 */
.login-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(94, 148, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 148, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}

/* 漂浮光点 */
.login-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(120, 170, 255, .55);
    box-shadow: 0 0 12px rgba(120, 170, 255, .8);
    animation: floatUp linear infinite;
    opacity: .5;
}
@keyframes floatUp {
    0%   { transform: translateY(12vh) scale(.7); opacity: 0; }
    15%  { opacity: .55; }
    85%  { opacity: .4; }
    100% { transform: translateY(-88vh) scale(1.1); opacity: 0; }
}

/* ---------- 布局 ---------- */
.login-wrap {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 24px 5vw;
}

/* ---------- 左侧品牌区 ---------- */
.login-brand { color: #e8f0ff; max-width: 480px; }

.login-brand .brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #8fb4ff;
    border: 1px solid rgba(143, 180, 255, .35);
    background: rgba(47, 107, 255, .12);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 22px;
}
.login-brand .brand-tag::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #43d08a;
    box-shadow: 0 0 8px #43d08a;
    animation: blink 2.2s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.login-brand h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 1px;
}
.login-brand h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #6ea8ff, #43d0c8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.login-brand p.desc {
    margin: 0 0 30px;
    color: #9db4d8;
    font-size: 14px;
    line-height: 1.9;
}

.login-feats { display: flex; flex-direction: column; gap: 14px; }
.login-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c6d7f2;
    font-size: 13.5px;
}
.login-feat .fi {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(47, 107, 255, .16);
    border: 1px solid rgba(110, 168, 255, .3);
    color: #8fb4ff;
}

/* ---------- 右侧登录卡 ---------- */
.login-card {
    width: 400px;
    max-width: 94vw;
    background: rgba(255, 255, 255, .97);
    border-radius: 18px;
    padding: 38px 36px 26px;
    box-shadow: 0 24px 80px rgba(2, 8, 30, .55), 0 0 0 1px rgba(255, 255, 255, .12);
}
.login-card .card-title { font-size: 20px; font-weight: 700; color: #17233d; margin: 0 0 4px; }
.login-card .card-sub { font-size: 12.5px; color: #8a94a6; margin: 0 0 24px; }

.login-field { margin-bottom: 16px; }
.login-field label {
    display: block;
    font-size: 12.5px;
    color: #4b5563;
    margin-bottom: 6px;
    font-weight: 500;
}
.login-input-wrap {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    background: #f7f9fc;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input-wrap:focus-within {
    border-color: #2f6bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}
.login-input-wrap .ficon {
    flex: none;
    width: 42px;
    display: flex; align-items: center; justify-content: center;
    color: #8a94a6;
}
.login-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #17233d;
    padding-right: 12px;
}
.login-input-wrap input::placeholder { color: #b3bac6; }

/* 验证码行 */
.login-captcha .code-img {
    flex: none;
    height: 32px;
    margin-right: 8px;
    border-radius: 6px;
    cursor: pointer;
}
.login-captcha input { padding-right: 8px; }

/* 错误提示 */
.login-error {
    min-height: 20px;
    font-size: 12.5px;
    color: #e5484d;
    margin: 2px 0 6px;
    text-align: center;
}

/* 协议 */
.login-agree {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #4b5563;
    margin-bottom: 14px;
}
.login-agree input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: #2f6bff;
    cursor: pointer;
}
.login-agree a { color: #2f6bff; text-decoration: none; cursor: pointer; }
.login-agree a:hover { text-decoration: underline; }

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f6bff, #2456d6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(47, 107, 255, .35);
    transition: transform .12s, box-shadow .15s, filter .15s;
}
.login-btn:hover { filter: brightness(1.06); box-shadow: 0 12px 28px rgba(47, 107, 255, .45); }
.login-btn:active { transform: translateY(1px); }
.login-btn[disabled] { opacity: .65; cursor: not-allowed; }

.login-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #9aa5b5;
}
.login-foot a { color: #6f7d92; text-decoration: none; }
.login-foot a:hover { color: #2f6bff; }

/* ---------- 协议弹窗 ---------- */
.protest-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 12, 32, .6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
}
.protest-mask.show { display: flex; }
.protest-panel {
    width: 460px;
    max-width: 92vw;
    max-height: 78vh;
    background: #fff;
    border-radius: 14px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}
.protest-panel h3 { margin: 0 0 12px; font-size: 16px; color: #17233d; text-align: center; }
.protest-panel .p-body {
    overflow-y: auto;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.9;
    border-top: 1px solid #edf0f5;
    padding-top: 10px;
}
.protest-panel .p-btn {
    margin-top: 16px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: #2f6bff;
    color: #fff;
    font-size: 13.5px;
    cursor: pointer;
}
.protest-panel .p-btn:hover { background: #2559db; }

/* ---------- 入驻支付弹窗（-9，沿用旧片段，仅做外壳统一） ---------- */
.paywrap-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 12, 32, .6);
    display: none;
    align-items: center;
    justify-content: center;
}
.paywrap-mask.show { display: flex; }
.paywrap-panel {
    width: 520px;
    max-width: 94vw;
    max-height: 82vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.paywrap-panel .pw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f5;
    font-size: 15px;
    font-weight: 600;
    color: #17233d;
}
.paywrap-panel .pw-head .pw-close {
    cursor: pointer;
    color: #8a94a6;
    font-size: 18px;
    line-height: 1;
    border: 0;
    background: none;
}
.paywrap-panel .pw-head .pw-close:hover { color: #e5484d; }
.paywrap-panel .pw-body { overflow-y: auto; padding: 6px 18px; }
.paywrap-panel .pw-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #edf0f5;
    background: #fafbfd;
}
.paywrap-panel .pw-foot button {
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #dfe3ea;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}
.paywrap-panel .pw-foot button.primary {
    background: #2f6bff;
    border-color: #2f6bff;
    color: #fff;
}
.paywrap-panel .pw-foot button.primary:hover { background: #2559db; }

/* 弹窗内旧表单元素统一（prePayDialog 片段使用 form-control） */
.paywrap-panel .form-control {
    height: 36px;
    border-radius: 8px;
    border: 1px solid #dfe3ea;
    box-shadow: none;
    font-size: 13px;
}
.paywrap-panel .form-control:focus {
    border-color: #2f6bff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}
.paywrap-panel .modal-content { border: 0; box-shadow: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .login-brand { display: none; }
    .login-wrap { gap: 0; }
}
