/* login.css — 登录页品牌样式，从 login.html 内联提取。
   浏览器可缓存此文件，移动端弱网下二次打开直接命中缓存，省去 17KB 传输。 */
:root {
    --page-bg: #c5e1ef;
    --page-bg-deep: #8fb6cb;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(255, 255, 255, 0.48);
    --text-primary: #0f2940;
    --text-secondary: #44677f;
    --text-tertiary: #6b8598;
    --brand: #19567f;
    --brand-shadow: rgba(13, 51, 80, 0.26);
    --success-bg: rgba(220, 252, 231, 0.78);
    --success-text: #166534;
    --error-bg: rgba(254, 226, 226, 0.82);
    --error-text: #991b1b;
}
body {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.86) 0, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 82% 18%, rgba(108, 191, 233, 0.22) 0, rgba(108, 191, 233, 0) 30%),
        linear-gradient(138deg, #d9edf7 0%, var(--page-bg) 42%, var(--page-bg-deep) 100%);
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 28px 18px;
    box-sizing: border-box;
}
body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
body::before {
    width: 420px;
    height: 420px;
    top: 1%;
    left: -120px;
    background: rgba(107, 193, 231, 0.3);
}
body::after {
    width: 460px;
    height: 460px;
    right: -160px;
    bottom: -120px;
    background: rgba(66, 133, 180, 0.28);
}
.page-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: minmax(420px, 1.18fr) minmax(340px, 420px);
    border-radius: 40px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    box-shadow: 0 34px 88px rgba(12, 48, 77, 0.18);
    overflow: hidden;
}
.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 680px;
    padding: 78px 70px;
    color: var(--text-primary);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at top right, rgba(96, 184, 227, 0.26), rgba(96, 184, 227, 0) 42%),
        linear-gradient(180deg, rgba(207, 232, 244, 0.52), rgba(143, 182, 203, 0.22));
}
.brand-panel::before {
    content: "";
    position: absolute;
    left: 72px;
    top: 50%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    transform: translateY(-42%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 56%, rgba(255, 255, 255, 0) 76%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}
.brand-panel::after {
    content: "";
    position: absolute;
    right: 92px;
    top: 16%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 232, 249, 0.28), rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0) 76%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.brand-panel > * {
    position: relative;
    z-index: 1;
}
.brand-top {
    position: relative;
    display: grid;
    gap: 12px;
    max-width: 560px;
    transform: translateY(-14px);
}
.brand-top::after {
    content: "";
    width: 156px;
    height: 1px;
    margin-top: 6px;
    background: linear-gradient(90deg, rgba(21, 97, 145, 0.82), rgba(122, 200, 234, 0.18));
    box-shadow: 0 0 20px rgba(73, 161, 203, 0.16);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    opacity: 0.8;
}
.eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e6999, #67bde4);
    box-shadow: 0 0 0 4px rgba(42, 130, 180, 0.12);
}
.brand-title {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(52px, 4.95vw, 72px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #19415f;
    white-space: nowrap;
    text-wrap: nowrap;
    background: linear-gradient(180deg, #2b5f7d 0%, #0f2e48 54%, #39739a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(87, 164, 205, 0.12);
}
.brand-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.75;
    color: #476e88;
    opacity: 0.92;
}
.login-panel {
    padding: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.34));
}
.login-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(248, 252, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 32px;
    padding: 42px 32px 30px;
    box-shadow: 0 28px 54px rgba(23, 73, 108, 0.16);
    text-align: left;
}
.logo-box {
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, #144f78, #4e9cc8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px -18px var(--brand-shadow);
}
.logo-box svg {
    width: 28px;
    height: 28px;
    color: white;
}
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}
.panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.84;
}
.input-group {
    margin-bottom: 1.15rem;
    text-align: left;
}
.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-tertiary);
    margin-bottom: 0.55rem;
    margin-left: 0.2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.input-field {
    width: 100%;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(176, 204, 220, 0.92);
    border-radius: 18px;
    font-size: 15px;
    color: #233240;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}
.input-field::placeholder {
    color: #8ea9ba;
}
.input-field:focus {
    outline: none;
    border-color: rgba(25, 102, 144, 0.5);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 5px rgba(67, 141, 184, 0.14);
    transform: translateY(-1px);
}
.input-field.is-readonly {
    background: rgba(219, 235, 244, 0.96);
    border-color: rgba(115, 172, 204, 0.86);
    color: var(--brand);
    font-weight: 700;
}
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #114a72 0%, #3279a5 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    margin-top: 0.75rem;
    box-shadow: 0 22px 30px -18px rgba(14, 55, 84, 0.42);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 36px -20px var(--brand-shadow);
    filter: brightness(1.02);
}
.btn-login:disabled {
    cursor: wait;
    transform: none;
    filter: saturate(0.94);
    opacity: 0.9;
    box-shadow: 0 18px 28px -20px rgba(14, 55, 84, 0.34);
}
.flash-msg {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    border: 1px solid transparent;
}
.flash-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(248, 113, 113, 0.18);
}
.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(74, 222, 128, 0.18);
}
.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px 16px;
    margin-top: 20px;
    color: var(--text-tertiary);
    font-size: 12px;
    line-height: 1.6;
}
.title-text {
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.subtitle-text {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.field-tip {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin: -0.15rem 0 1rem;
    padding: 0 0.2rem;
    text-align: left;
}
.tenant-match-list {
    display: none;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: -0.2rem 0 1rem;
}
.tenant-match-list.is-visible {
    display: flex;
}
.tenant-match-chip {
    border: 1px solid rgba(176, 208, 224, 0.96);
    background: rgba(242, 248, 252, 0.98);
    color: var(--brand);
    border-radius: 18px;
    padding: 0.8rem 0.95rem;
    min-width: 150px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 14px 28px -18px rgba(28, 87, 126, 0.22);
}
.tenant-match-chip:hover {
    transform: translateY(-1px);
    border-color: #76b1d1;
    background: rgba(235, 244, 249, 0.98);
}
.tenant-match-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.tenant-match-meta {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.5;
}
.record-link {
    color: inherit;
    text-decoration: none;
}
.record-link:hover {
    color: var(--brand);
}
@media (max-width: 980px) {
    body {
        padding: 18px;
    }
    .page-shell {
        grid-template-columns: 1fr;
        max-width: 640px;
    }
    .brand-panel {
        min-height: auto;
        padding: 40px 34px 28px;
    }
    .brand-panel::before {
        left: 22px;
        top: 50%;
        width: 220px;
        height: 220px;
    }
    .brand-panel::after {
        width: 120px;
        height: 120px;
        right: 26px;
        top: 22%;
    }
    .brand-top {
        max-width: 520px;
        transform: none;
    }
    .brand-top::after {
        width: 132px;
    }
    .login-panel {
        padding: 0 18px 18px;
    }
}
@media (max-width: 640px), (max-height: 860px) {
    body {
        align-items: stretch;
        padding: 10px;
        background:
            radial-gradient(circle at top center, rgba(255, 255, 255, 0.72) 0, rgba(255, 255, 255, 0) 34%),
            linear-gradient(180deg, #d2e8f4 0%, #accddd 100%);
    }
    .page-shell {
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.14);
    }
    .brand-panel {
        min-height: auto;
        padding: 24px 20px 10px;
        background:
            linear-gradient(180deg, rgba(221, 240, 249, 0.62), rgba(175, 205, 221, 0.18));
    }
    .brand-panel::before {
        width: 180px;
        height: 180px;
        left: auto;
        right: -34px;
        top: -18px;
        transform: none;
    }
    .brand-panel::after {
        width: 108px;
        height: 108px;
        right: 10px;
        top: 16px;
    }
    .brand-top {
        gap: 8px;
        max-width: none;
    }
    .brand-top::after {
        width: 92px;
        margin-top: 2px;
    }
    .eyebrow {
        font-size: 9px;
        letter-spacing: 0.28em;
    }
    .brand-title {
        font-size: min(38px, 10.6vw);
        line-height: 1.04;
    }
    .brand-subtitle {
        font-size: 12px;
        letter-spacing: 0.14em;
        line-height: 1.6;
    }
    .login-panel {
        padding: 0 10px 10px;
    }
    .login-card {
        border-radius: 22px;
        padding: 22px 16px 18px;
        box-shadow: 0 18px 36px rgba(18, 65, 98, 0.14);
    }
    .panel-header {
        align-items: center;
        margin-bottom: 18px;
    }
    .panel-badge {
        margin-bottom: 12px;
    }
    .logo-box {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }
    .logo-box svg {
        width: 24px;
        height: 24px;
    }
    .title-text {
        font-size: 24px;
    }
    .subtitle-text {
        font-size: 9px;
        letter-spacing: 0.18em;
    }
    .input-group label {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    .input-field {
        padding: 0.95rem 1rem;
        border-radius: 16px;
    }
    .btn-login {
        padding: 0.95rem;
        border-radius: 16px;
    }
    .footer-info {
        margin-top: 18px;
        flex-direction: column;
        align-items: flex-start;
        font-size: 11px;
    }
}
