:root {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #2d2942;
  background: #faf9f6;
  color-scheme: light;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 32px 24px; border-top: 4px solid #d97c7d; }
main { width: min(100%, 360px); }
.brand-icon { display: block; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #767483; font-size: 11px; font-weight: 700; }
h1 { margin: 0; font-size: 32px; line-height: 1.3; }
.intro { margin: 12px 0 32px; font-size: 14px; color: #767483; line-height: 1.7; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
input, button { font: inherit; }
.key-field { display: flex; align-items: center; border: 1px solid #ceccd3; border-radius: 7px; background: #fff; min-height: 48px; }
.key-field:focus-within { outline: 2px solid #65a697; outline-offset: 2px; }
input { min-width: 0; flex: 1; padding: 12px; border: 0; outline: 0; background: transparent; color: #2d2942; font-size: 16px; }
button { cursor: pointer; }
.toggle-key { align-self: stretch; border: 0; padding: 0 13px; color: #767483; background: transparent; font-size: 12px; }
.submit { width: 100%; min-height: 48px; border: 0; border-radius: 7px; background: #2d2942; color: #fff; font-size: 15px; font-weight: 650; }
.submit:disabled { opacity: 0.65; cursor: wait; }
.error { min-height: 24px; margin: 8px 0; color: #b04455; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.remember { margin: 18px 0 0; color: #767483; font-size: 12px; text-align: center; }
@media (max-height: 540px) { body { padding-block: 20px; } .brand-icon { margin-bottom: 12px; } .intro { margin-bottom: 18px; } }
