@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink: #1f2233; --muted: #6e738c; --line: rgba(95, 103, 140, .16); --brand: #6f5cff; --page-background: linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #f6f8fc 82%, #edf1f8 100%); }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--page-background); color: var(--ink); font-family: Manrope, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
.login-page { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 32px 20px; }
.login-card { width: min(100%, 420px); padding: 34px 36px 30px; border: 1px solid rgba(95, 103, 140, .12); border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 20px 50px rgba(95, 103, 140, .08); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; color: var(--ink); text-decoration: none; }
.brand img { display: block; border-radius: 10px; }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.panel-inner { width: 100%; }
.panel-heading { margin-bottom: 30px; text-align: center; }
h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.07em; line-height: 1; }
.panel-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
form { display: grid; gap: 11px; }
form > label { margin-top: 11px; color: #4c526b; font-size: 13px; font-weight: 700; }
input[type="tel"], .password-field input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fff; color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #969bb0; }
input[type="tel"]:focus, .password-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(111, 92, 255, .14); }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-field button { position: absolute; top: 0; right: 0; height: 54px; padding: 0 16px; border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 700; cursor: pointer; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 16px; color: var(--muted); font-size: 12px; }
.remember { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.remember input { accent-color: var(--brand); }
a { color: #5d4cf0; font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
.submit-button { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 48px; border: 0; border-radius: 10px; background: var(--brand); color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.submit-button .button-label { color: inherit; font-size: inherit; font-weight: inherit; }
.submit-button > span[aria-hidden="true"] { position: absolute; right: 18px; color: #b9e7ff; font-size: 22px; font-weight: 400; }
.submit-button:hover { background: #5d4cf0; transform: translateY(-2px); }
.submit-button:disabled { cursor: wait; opacity: .68; transform: none; }
.form-error { margin: 0 0 3px; color: #b64f42; font-size: 12px; }
.signup { margin: 28px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.tenant-caption { margin: 0 0 18px; color: var(--muted); font-size: 13px; text-align: center; }
.tenant-list { display: grid; gap: 10px; }
.tenant-option { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 60px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.tenant-option:hover, .tenant-option[aria-checked="true"] { border-color: rgba(111, 92, 255, .55); background: rgba(111, 92, 255, .05); }
.tenant-radio { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid #c3c7d5; border-radius: 50%; }
.tenant-option[aria-checked="true"] .tenant-radio { border: 5px solid var(--brand); }
.tenant-copy { display: grid; min-width: 0; gap: 3px; }
.tenant-name { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-code { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-tag { margin-left: auto; color: var(--brand); font-size: 11px; white-space: nowrap; }
.tenant-actions { display: grid; grid-template-columns: 96px 1fr; gap: 10px; margin-top: 20px; }
.back-button { height: 56px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.back-button:hover { border-color: rgba(111, 92, 255, .4); color: var(--brand); }
.legal { margin: 28px 0 0; color: #969bb0; font-size: 11px; text-align: center; }
.legal a { color: #7181b9; }
:focus-visible { outline: 3px solid rgba(111, 92, 255, .32); outline-offset: 3px; }
@media (max-width: 480px) { .login-page { padding: 20px 16px; } .login-card { padding: 28px 22px 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
