:root {
    color: #25272b;
    color-scheme: light;
    font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    --accent: #ffcf15;
    --accent-text: #725600;
    --control-border: #dde0e5;
    --muted: #626974;
    --danger: #b53431;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100dvh; background: #eceff5 url('/login/background.svg') left bottom / cover no-repeat; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid #836100; outline-offset: 3px; }
h1, h2, p { margin: 0; }

.auth-brand { position: absolute; top: 16px; left: 20px; display: flex; align-items: center; gap: 10px; color: #24262a; font-size: 19px; font-weight: 720; letter-spacing: .015em; }
.auth-brand img { flex: 0 0 auto; }
.auth-portals { position: absolute; z-index: 2; top: 20px; right: 20px; }
.auth-member { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid #d4dbe4; border-radius: 999px; color: #515a67; background: #ffffffba; list-style: none; font-size: 13px; cursor: pointer; }
.auth-member::-webkit-details-marker { display: none; }
.auth-member::marker { content: ""; }
.auth-member:hover { background: #fff; color: #333b48; }
.auth-member:focus-visible { outline: 2px solid #836100; outline-offset: 3px; }
.auth-portals nav { position: absolute; top: calc(100% + 6px); right: 0; display: grid; min-width: 136px; padding: 5px; border: 1px solid #dbe2ed; border-radius: 8px; background: #fff; box-shadow: 0 6px 16px #24355122; }
.auth-portals a { padding: 6px 8px; border-radius: 4px; color: #465269; text-decoration: none; font-size: 13px; white-space: nowrap; }
.auth-portals a:hover { background: #f5f7fb; }
.auth-main { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 83px 22px 42px; }
.auth-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(942px, 100%); min-height: 505px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 45px #28384e0c; }
.auth-identity { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 42px 26px; background: #ffffffb8; text-align: center; }
.identity-mark { width: 175px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid #ffffffc7; border-radius: 25px; background: #ffffffd9; box-shadow: 0 17px 31px #3849631f; }
.identity-mark img { display: block; border-radius: 18px; }
.auth-identity h2 { color: #20232a; font-size: 35px; font-weight: 760; letter-spacing: .08em; }
.auth-identity p { color: #525965; font-size: 15px; letter-spacing: .12em; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 33px 30px 40px; background: #fff; }
.auth-intro { display: grid; justify-items: center; gap: 12px; margin-bottom: 18px; }
.auth-intro h1 { color: #22242a; font-size: 25px; line-height: 1.35; font-weight: 730; }
.auth-intro img { display: block; }
#auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 6px; min-width: 0; color: #434952; font-size: 13px; }
.required { color: var(--danger); }
.auth-input { position: relative; display: flex; align-items: center; min-height: 41px; border: 1px solid var(--control-border); border-radius: 999px; color: #525964; background: #fff; transition: border-color 140ms, box-shadow 140ms; }
.auth-input:focus-within { border-color: #c59900; box-shadow: 0 0 0 2px #ffcf1538; }
.auth-input:has([aria-invalid="true"]) { border-color: #c74f4a; }
.auth-input input { min-width: 0; width: 100%; min-height: 40px; padding: 0 15px 0 41px; border: 0; border-radius: inherit; background: transparent; color: #262831; outline: 0; font-size: 14px; }
.auth-input.has-action input { padding-right: 44px; }
.auth-input input::placeholder { color: #747e8b; }
.auth-input svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-icon { position: absolute; left: 14px; pointer-events: none; }
.show-password { position: absolute; top: 50%; right: 5px; display: grid; place-items: center; width: 32px; height: 32px; transform: translateY(-50%); border: 0; border-radius: 50%; padding: 0; color: #666e7b; background: transparent; }
.show-password:hover, .show-password[aria-pressed="true"] { background: #fff5cc; color: #795d00; }
.password-help { color: var(--muted); font-size: 12px; }
.auth-submit { min-height: 42px; margin-top: 6px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #2b2200; font-weight: 650; transition: background 140ms, border-color 140ms; }
.auth-submit:hover { border-color: #edbd00; background: #f1c110; }
.auth-submit:disabled { opacity: .62; cursor: progress; }
.auth-legal { font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-legal p { margin: 0 0 4px; }
.auth-legal a { color: #214e86; }
.auth-legal a + a { margin-inline-start: 12px; }
.auth-legal input { accent-color: #9b7400; vertical-align: middle; }
.auth-error { color: var(--danger); font-size: 13px; overflow-wrap: anywhere; }
.auth-alternative { display: flex; flex-wrap: wrap; gap: 2px 7px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.auth-alternative button { border: 0; border-radius: 3px; padding: 0; background: transparent; color: var(--accent-text); font-weight: 650; }
.auth-alternative button:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 740px) {
    body { background-position: 31% bottom; }
    .auth-card { grid-template-columns: minmax(0, 1fr); width: min(455px, 100%); min-height: 0; }
    .auth-identity { display: none; }
    .auth-panel { padding: 32px 29px; }
}
@media (max-width: 420px) {
    .auth-brand { top: 16px; left: 16px; gap: 8px; font-size: 16px; }
    .auth-brand img { width: 34px; height: 34px; }
    .auth-portals { top: 17px; right: 15px; }
    .auth-member { min-height: 31px; padding-inline: 11px; }
    .auth-main { padding: 75px 15px 28px; }
    .auth-panel { padding: 26px 19px 29px; }
    .auth-intro h1 { font-size: 23px; }
    .auth-input input { font-size: 16px; }
}
@media (max-width: 325px) {
    .auth-brand { font-size: 14px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
