:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #292534;
  background: #f1edf8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #bda9f8; outline-offset: 4px; }

.login-view { min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 420px; padding: 42px 36px; border: 1px solid #ffffffc0; border-radius: 20px; background: #ffffffed; box-shadow: 0 12px 48px #50416d09; }
.login-lock { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #f3effb; color: #967bc8; margin-bottom: 26px; }
.login-lock svg { width: 23px; height: 23px; }
h1 { margin: 0 0 10px; font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
.login-description { margin: 0 0 32px; color: #797482; font-size: 13px; line-height: 1.7; }
label { display: block; font-size: 13px; font-weight: 550; color: #676171; margin-bottom: 10px; }
.password-field { position: relative; }
input { width: 100%; min-height: 48px; padding: 12px 46px 12px 14px; border: 1px solid #e1dce9; border-radius: 9px; background: #fff; color: #292534; outline: none; font-size: 14px; transition: border-color .16s, box-shadow .16s; }
input::placeholder { color: #96909f; }
input:focus { border-color: #987bdc; box-shadow: 0 0 0 3px #7657dc12; }
.icon-button { position: absolute; right: 6px; top: 7px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: #96909f; }
.icon-button:hover { background: #f3effa; color: #7657dc; }
.form-message { min-height: 22px; margin: 10px 0; color: #b6475a; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 9px; background: #7657dc; color: #fff; font-size: 14px; font-weight: 550; transition: background .16s; box-shadow: 0 3px 8px #7657dc15; }
.login-submit:hover:not(:disabled) { background: #6545c8; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.noscript-message { position: fixed; inset: auto 20px 20px; text-align: center; font-size: 13px; color: #676171; }

@media (max-width: 480px) {
  .login-view { padding: 24px 20px; }
  .login-card { padding: 34px 26px; border-radius: 16px; }
  input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
