/* ==========================================================================
   zyl · 市场占有率建设应用平台 —— 登录/认证页样式
   设计差异：顶部品牌栏 + 渐变横幅 + 居中卡片（区别于 a99 的左右分栏）
   ========================================================================== */

:root {
    --brand: #0066cc;
    --brand-dark: #0052a3;
    --brand-soft: #eaf3ff;
    --ink-900: #17293f;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --line: #dbe6f3;
    --page-bg: #f2f7fd;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.zyl-auth {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink-700);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

.zyl-container {
    width: 1120px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

/* ---------- 顶部品牌栏 ---------- */
.zyl-header {
    background: #fff;
    border-bottom: 1px solid #e8eff7;
}

.zyl-header .zyl-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 84px;
}

.zyl-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.zyl-brand img {
    display: block;
    height: 48px;
    width: auto;
}

.zyl-brand-text strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand);
}

.zyl-brand-text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #8a97a8;
    letter-spacing: .5px;
}

.zyl-home {
    flex: none;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--brand);
    background: #f5faff;
    border: 1px solid #bcd8f5;
    border-radius: 20px;
    transition: all .2s ease;
}

.zyl-home:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------- 渐变横幅 ---------- */
.zyl-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(100deg, #003d80 0%, #0066cc 58%, #2f8fe6 100%);
    overflow: hidden;
}

.zyl-hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 70%);
}

.zyl-hero .zyl-container {
    position: relative;
    z-index: 1;
    padding: 34px 0 76px;
}

.zyl-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 3px;
    opacity: .85;
}

.zyl-hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
}

.zyl-hero p {
    margin: 0;
    font-size: 14px;
    opacity: .9;
    letter-spacing: .5px;
}

/* ---------- 居中卡片 ---------- */
.zyl-main {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin: -52px auto 44px;
    padding: 0 16px;
}

.zyl-card {
    width: 460px;
    max-width: 100%;
    padding: 30px 34px 26px;
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--brand);
    box-shadow: 0 18px 46px rgba(15, 50, 90, .14);
}

/* ---------- 标题 ---------- */
.login-head {
    margin-bottom: 22px;
    text-align: center;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand);
}

.login-head h2 {
    margin: 0 0 6px;
    font-size: 23px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: 1px;
}

.login-head p {
    margin: 0;
    font-size: 13.5px;
    color: #8a97a8;
}

/* ---------- 提示 ---------- */
.login-alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.7;
    border-radius: 6px;
}

.login-alert.is-error {
    color: #8a1f2b;
    background: #fff0f2;
    border: 1px solid #ffd4da;
}

.login-alert.is-success {
    color: #146c43;
    background: #effaf3;
    border: 1px solid #c9efd8;
}

.login-alert ul { margin: 0; padding-left: 18px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-700);
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-row a {
    font-size: 12.5px;
    color: var(--brand);
}

.label-row a:hover { color: var(--brand-dark); }

.control {
    position: relative;
    display: flex;
    align-items: center;
}

.control-icon {
    position: absolute;
    left: 13px;
    font-size: 16px;
    color: #a7b4c4;
    pointer-events: none;
}

.control input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink-900);
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.control.has-toggle input { padding-right: 44px; }

.control input::placeholder { color: #a9b4c3; }

.control input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .12);
}

.toggle-password {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #9aa8b8;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.toggle-password i { font-size: 16px; }

.toggle-password .ri-eye-off-line { display: none; }

.toggle-password.is-visible .ri-eye-line { display: none; }

.toggle-password.is-visible .ri-eye-off-line { display: inline-flex; }

.field-error {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #dc2626;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--ink-500);
    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--brand);
}

.btn-login {
    width: 100%;
    height: 46px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0, 102, 204, .24);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: var(--brand-dark);
    box-shadow: 0 10px 22px rgba(0, 102, 204, .3);
    transform: translateY(-1px);
}

.login-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    font-size: 12.5px;
    color: var(--ink-500);
    border-top: 1px solid #eef3f9;
}

.auth-note { flex: 1 1 100%; line-height: 1.7; color: #8a97a8; }

.login-foot a { color: var(--brand); font-weight: 600; }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400 !important;
    color: var(--ink-500) !important;
}

/* ---------- 其他认证页 ---------- */
.auth-text {
    margin: 0 0 20px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-500);
}

.auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink-700);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--brand);
    background: #f7fbff;
    border-color: var(--brand);
}

/* ---------- 规则长文 ---------- */
.rules-doc { font-size: 14.5px; line-height: 1.9; color: var(--ink-700); }

.rules-doc h2 { margin: 4px 0 22px; font-size: 22px; }

.rules-doc p { margin: 0 0 13px; }

.rules-doc .text-center { text-align: center; }

.rules-doc .fw-bold { font-weight: 700; }

.rules-doc .my-5 { margin: 20px 0; }

/* ---------- 页脚 ---------- */
.zyl-footer {
    padding: 26px 16px 32px;
    text-align: center;
    font-size: 12.5px;
    line-height: 2;
    color: #8a97a8;
}

.zyl-footer p { margin: 0; }

@media (max-width: 767.98px) {
    .zyl-header .zyl-container { height: 68px; }

    .zyl-brand img { height: 38px; }

    .zyl-brand-text strong { font-size: 16px; }

    .zyl-hero .zyl-container { padding: 24px 0 62px; }

    .zyl-hero h1 { font-size: 24px; letter-spacing: 2px; }

    .zyl-card { padding: 24px 20px 22px; }
}
