/* ============================================================
 * 授权端（发布中心）登录页样式
 *
 * ★ 与小娃护航后台登录页同一套视觉语言：
 *   主色 #1e6fff + #00c6ff 渐变、网格 + 柔光背景、左侧品牌介绍 + 右侧卡片。
 *
 * ★ DOM 契约（login.html 依赖）：
 *   .login-page .login-wrap .login-shell .brand-panel .login-card
 *   .features .mobile-brand .head-icon .card-head .form-label
 *   .form-control .btn-login .alert .msg(.ok/.err)
 * ============================================================ */

:root {
    --rc-primary: #1e6fff;
    --rc-primary-rgb: 30, 111, 255;
    --rc-grad-start: #1e6fff;
    --rc-grad-end: #00c6ff;
    --rc-border-soft: #e5e7eb;
    --rc-text-muted: #6b7280;
}

* { -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1f2937;
    background:
        linear-gradient(rgba(30, 111, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(30, 111, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(ellipse 70% 55% at 12% 8%, rgba(30, 111, 255, .20) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 92%, rgba(0, 198, 255, .18) 0%, transparent 60%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 55%, #e6eeff 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* 顶部渐变条 */
body.login-page::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e6fff 0%, #00c6ff 45%, #00d4a0 100%);
    z-index: 100;
}

/* ---------- 顶部导航 ---------- */
.login-page .top-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
.login-page .top-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    text-decoration: none;
}
.login-page .top-nav .brand .logo-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--rc-grad-start), var(--rc-grad-end));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(30, 111, 255, .35);
}
.login-page .top-nav .top-right {
    font-size: 12.5px;
    color: var(--rc-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- 主容器 ---------- */
.login-page .login-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 84px 24px 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}
.login-page .login-shell {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1000px;
}

/* ---------- 左侧品牌介绍 ---------- */
.login-page .brand-panel {
    flex: 1 1 0;
    max-width: 520px;
    padding-right: 68px;
}
.login-page .brand-panel .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(30, 111, 255, .08);
    color: var(--rc-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(30, 111, 255, .12);
}
.login-page .brand-panel h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #0b3a91 0%, #1e6fff 55%, #00c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -.6px;
    word-break: break-word;
}
.login-page .brand-panel .lead {
    font-size: 15.5px;
    line-height: 1.85;
    color: #4b5563;
    margin: 0 0 32px;
}
.login-page .brand-panel .features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.login-page .brand-panel .features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 17px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.login-page .brand-panel .features li .icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--rc-grad-start), var(--rc-grad-end));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 111, 255, .28);
}
.login-page .brand-panel .features li .text { display: flex; flex-direction: column; gap: 3px; }
.login-page .brand-panel .features li strong { font-size: 14px; font-weight: 600; color: #1f2937; }
.login-page .brand-panel .features li span { font-size: 12.5px; color: var(--rc-text-muted); line-height: 1.6; }

/* ---------- 右侧登录卡片 ---------- */
.login-page .login-card {
    flex: 0 0 400px;
    width: 400px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
    overflow: hidden;
}
.login-page .login-card .card-body { padding: 34px 34px 30px; }
.login-page .login-card .card-head { margin-bottom: 24px; }
.login-page .login-card .card-head .head-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--rc-grad-start), var(--rc-grad-end));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(30, 111, 255, .3);
}
.login-page .login-card .card-head h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1f2937;
}
.login-page .login-card .card-head p {
    font-size: 13px;
    color: var(--rc-text-muted);
    margin: 0;
}

/* 移动端品牌区（桌面隐藏） */
.login-page .mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 22px;
}
.login-page .mobile-brand .mobile-brand-title { display: block; font-size: 17px; font-weight: 700; color: #1f2937; }
.login-page .mobile-brand .mobile-brand-sub { display: block; font-size: 12.5px; color: var(--rc-text-muted); margin-top: 3px; }

/* ---------- 表单 ---------- */
.login-page .form-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
    display: block;
}
.login-page .form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid var(--rc-border-soft);
    background: #fff;
    color: #1f2937;
    outline: none;
    transition: border-color .16s, box-shadow .16s;
}
.login-page .form-control:focus {
    border-color: var(--rc-primary);
    box-shadow: 0 0 0 3px rgba(var(--rc-primary-rgb), .14);
}
.login-page .form-control::placeholder { color: #9ca3af; }
.login-page .input-icon { position: relative; }
.login-page .input-icon > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}
.login-page .input-icon .form-control { padding-left: 40px; }

.login-page .btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--rc-grad-start), var(--rc-grad-end));
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 2px;
    box-shadow: 0 8px 20px rgba(30, 111, 255, .3);
    transition: filter .16s, box-shadow .16s, opacity .16s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-page .btn-login:hover { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(30, 111, 255, .38); }
.login-page .btn-login:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.login-page .msg {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    display: none;
    padding: 8px 12px;
    border-radius: 8px;
}
.login-page .msg.show { display: block; }
.login-page .msg.err {
    color: #b91c1c;
    background: rgba(220, 38, 38, .07);
    border: 1px solid rgba(220, 38, 38, .18);
}
.login-page .msg.ok {
    color: #15803d;
    background: rgba(22, 163, 74, .07);
    border: 1px solid rgba(22, 163, 74, .18);
}

.login-page .login-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--rc-border-soft);
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .login-page .brand-panel { display: none; }
    .login-page .login-shell { max-width: 420px; }
    .login-page .login-card { flex: 1 1 auto; width: 100%; max-width: 420px; }
    .login-page .mobile-brand { display: block; }
    .login-page .top-nav { padding: 18px 22px; }
    .login-page .top-nav .top-right { display: none; }
    .login-page .login-wrap { padding: 76px 18px 30px; }
}

@media (max-width: 420px) {
    .login-page .login-card .card-body { padding: 28px 22px 24px; }
}
