/* ============================================================
   邻客云 LinKeCloud · 商家 / 平台登录
   深色品牌面 + 白色登录面
   ============================================================ */

:root {
    --navy-950: #06141c;
    --navy-900: #071722;
    --navy-800: #0b2530;
    --brand-500: #2f80ed;
    --brand-600: #1f6fdb;
    --teal-500: #0e9f6e;
    --orange-500: #ff7a1a;
    --orange-600: #ef6200;
    --ink-900: #101828;
    --ink-700: #344054;
    --muted-600: #667085;
    --muted-500: #98a2b3;
    --line-200: #e4e7ec;
    --line-100: #eef2f6;
    --surface: #ffffff;
    --field-bg: #f8fafc;
    --font-ui: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body.auth-body {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    overflow-x: hidden;
    color: var(--ink-900);
    background: #f4f7fa;
    font-family: var(--font-ui);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(47, 128, 237, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 128, 237, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(760px 560px at 50% 50%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(760px 560px at 50% 50%, #000 20%, transparent 100%);
}

.auth-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.auth-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-glow .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
}

.auth-glow .glow-a {
    width: 620px;
    height: 620px;
    left: -220px;
    top: -240px;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.2), transparent 68%);
}

.auth-glow .glow-b {
    width: 560px;
    height: 560px;
    right: -200px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.14), transparent 70%);
}

.auth-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
}

.auth-card {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 630px;
    overflow: hidden;
    border: 1px solid rgba(223, 232, 243, 0.75);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 36px 90px rgba(13, 35, 57, 0.16);
}

/* ---------------- 品牌面 ---------------- */

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 44px 44px 34px;
    color: #eaf1fb;
    background:
        radial-gradient(520px 380px at 14% 0%, rgba(47, 128, 237, 0.34), transparent 70%),
        radial-gradient(480px 400px at 100% 100%, rgba(14, 159, 110, 0.24), transparent 68%),
        linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 60%, #0a2c27 100%);
}

.auth-brand::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -105px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(94, 234, 212, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 44px rgba(94, 234, 212, 0.035),
        0 0 0 88px rgba(94, 234, 212, 0.02);
    pointer-events: none;
}

.brand-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(4, 16, 26, 0.35));
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-en {
    margin-top: 3px;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: #8ba2ba;
    text-transform: uppercase;
}

.brand-body {
    margin: auto 0;
    padding: 40px 0 34px;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #5eead4;
    text-transform: uppercase;
}

.brand-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}

.brand-body h1 {
    max-width: 380px;
    margin: 14px 0 15px;
    color: #fff;
    font-size: 38px;
    line-height: 1.18;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.brand-body p {
    max-width: 360px;
    margin: 0 0 26px;
    color: #a9bdd6;
    font-size: 13px;
    line-height: 1.85;
}

.brand-points {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d3e0ee;
    font-size: 12.5px;
    line-height: 1.5;
}

.point-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 1px solid rgba(94, 234, 212, 0.16);
    border-radius: 8px;
    background: rgba(94, 234, 212, 0.08);
    color: #5eead4;
}

.point-ico svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-stats div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-stats strong {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand-stats span {
    color: #8ba2ba;
    font-size: 10.5px;
}

.brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #6f87a3;
    font-size: 10px;
}

/* ---------------- 登录面 ---------------- */

.auth-form {
    display: flex;
    flex-direction: column;
    padding: 42px 54px 30px;
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(47, 128, 237, 0.035), transparent 72%),
        #fff;
}

.auth-mobile-head { display: none; }

.auth-form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 28px;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border: 1px solid #dbe8f2;
    border-radius: 999px;
    background: #f3f8fb;
    color: #52677d;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-600);
    font-size: 11.5px;
    text-decoration: none;
    transition: color 0.18s;
}

.back-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.back-link:hover { color: var(--brand-600); }

.auth-form-head {
    margin-top: 26px;
}

.auth-form-head .eyebrow {
    display: block;
    color: var(--muted-500);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.auth-form-head h2 {
    margin: 8px 0 7px;
    color: var(--ink-900);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.045em;
}

.auth-form-head p {
    margin: 0;
    color: var(--muted-600);
    font-size: 12.5px;
    line-height: 1.65;
}

.auth-form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
    display: block;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #9aa8b8;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.18s;
}

.input {
    width: 100%;
    height: 49px;
    padding: 10px 13px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    outline: none;
    background: var(--field-bg);
    color: var(--ink-900);
    font-family: inherit;
    font-size: 13.5px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input-wrap .input { padding-left: 42px; }

.input::placeholder { color: #a3adbb; }

.input:hover { border-color: #c9d6e4; }

.input:focus {
    border-color: var(--brand-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.input-wrap:focus-within .input-icon { stroke: var(--brand-500); }

.field-password .input { padding-right: 58px; }

.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    height: 30px;
    padding: 0 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted-600);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
}

.pwd-toggle:hover {
    color: var(--brand-600);
    background: #eef5fe;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.captcha-row .input {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.12em;
    padding-left: 13px;
}

.captcha-img {
    width: 124px;
    height: 46px;
    flex: 0 0 124px;
    border: 1px solid #dbe4ee;
    border-radius: 9px;
    background: #f7faff;
    object-fit: cover;
    cursor: pointer;
}

.captcha-row .link-btn {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-600);
    font-family: inherit;
    font-size: 11.5px;
    white-space: nowrap;
    cursor: pointer;
}

.captcha-row .link-btn:hover { color: #14509f; }

.field-hint {
    color: var(--muted-500);
    font-size: 10.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.btn-primary {
    margin-top: 4px;
    color: #fff;
    background: linear-gradient(135deg, #2f80ed, #1f6fdb);
    box-shadow: 0 14px 28px rgba(31, 111, 219, 0.2);
}

.auth-merchant .btn-primary {
    background: linear-gradient(135deg, #ff943d, #ff6200);
    box-shadow: 0 14px 28px rgba(239, 98, 0, 0.22);
}

.auth-merchant .btn-primary:hover {
    background: linear-gradient(135deg, #ff8a2c, #e85a00);
    box-shadow: 0 17px 32px rgba(239, 98, 0, 0.27);
}

.btn-primary:hover { background: linear-gradient(135deg, #2474df, #185fc4); }
.btn-primary:active { transform: translateY(1px); }

.btn-lg {
    height: 50px;
    padding: 0 22px;
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-switch {
    margin-top: 14px;
    font-size: 11.5px;
}

.auth-switch a {
    color: var(--brand-600);
    text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line-100);
}

.foot-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-500);
    font-size: 10.5px;
    line-height: 1.6;
}

.foot-note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: #0e9f6e;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.foot-meta {
    flex: 0 0 auto;
    color: #b3bcc9;
    font-size: 10px;
}

/* ---------------- 提示 ---------------- */

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
}

.alert-success { border-color: #c4ecd8; background: #e9f8f0; color: #0b6b4a; }
.alert-error { border-color: #f6cfcf; background: #fdeeee; color: #a52222; }
.alert-info { border-color: #cfe2f9; background: #eaf3fd; color: #0b5aa8; }

.alert-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.alert-text { flex: 1; }

.alert-close {
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 15px;
    opacity: 0.5;
    cursor: pointer;
}

.alert ~ .auth-form-body { margin-top: 18px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1060px) {
    .auth-brand { padding: 38px 34px 30px; }
    .auth-form { padding: 38px 40px 28px; }
    .brand-body h1 { font-size: 33px; }
    .brand-points li { font-size: 12px; }
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .auth-brand {
        padding: 26px 30px 24px;
    }
    .auth-brand::after { display: none; }
    .brand-body {
        margin: 24px 0 0;
        padding: 0;
    }
    .brand-body p,
    .brand-points,
    .brand-stats,
    .brand-foot {
        display: none;
    }
    .brand-body h1 {
        margin: 8px 0 0;
        font-size: 26px;
    }
    .auth-form {
        align-items: center;
        padding: 32px 34px 28px;
    }
    .auth-form > * {
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 680px) {
    body.auth-body {
        place-items: center;
        padding: 14px;
        background: #f2f6fa;
    }
    .auth-card {
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(13, 35, 57, 0.12);
    }
    .auth-brand { display: none; }
    .auth-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 26px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--line-100);
    }
    .auth-mobile-head .brand-head { gap: 9px; }
    .auth-mobile-head .brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .auth-mobile-head .brand-name { font-size: 15px; }
    .auth-form {
        padding: 22px 20px 24px;
    }
    .auth-form-top { display: none; }
    .auth-form-head { margin-top: 0; }
    .auth-form-head h2 { font-size: 26px; }
    .auth-form-body { margin-top: 22px; }
    .input { height: 48px; font-size: 16px; }
    .btn-lg { height: 50px; }
    .captcha-img {
        width: 108px;
        flex-basis: 108px;
    }
    .auth-form-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 28px;
    }
}

@media (max-width: 390px) {
    .auth-form { padding: 20px 16px 22px; }
    .auth-form-head h2 { font-size: 23px; }
    .captcha-row { gap: 7px; }
    .captcha-img { width: 96px; flex-basis: 96px; }
    .captcha-row .link-btn { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .input,
    .btn,
    .back-link,
    .pwd-toggle {
        transition: none;
    }
}
