:root {
  font: 14px/1.5 "Segoe UI", Arial, sans-serif;
  color: #252d50;
  background: #f5f6fb;
  --indigo: #30376f;
  --border: #dce0ee;
  --danger: #9b283e;
  --radius: 6px;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.card {
  width: min(460px, 100%);
  padding: 32px 35px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px #282c6508;
}
.identity {
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.identity img { display: block; max-width: 100%; width: 215px; height: auto; }
.field { margin-bottom: 18px; }
.field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
label { font-weight: 600; }
button, input { font: inherit; }
input:not([type=hidden]) {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
input[aria-invalid=true] { border-color: var(--danger); }
:is(button, input):focus-visible { outline: 3px solid #777ce2; outline-offset: 2px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
button { cursor: pointer; }
.eye {
  position: absolute;
  inset: 1px 1px auto auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #596681;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}
.eye[hidden] { display: none; }
.primary, .secondary { min-height: 46px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.primary { width: 100%; display: flex; justify-content: center; align-items: center; gap: 14px; color: #fff; background: var(--indigo); font-weight: 600; }
.primary:hover { background: #252b5a; }
.secondary { color: var(--indigo); background: #fff; }
.secondary:hover, .eye:hover { background: #f0f1f8; }
.error { font-size: 12px; line-height: 18px; color: var(--danger); }
.auth-error { min-height: 36px; margin: 8px 0 0; }
footer { margin-top: 12px; text-align: center; font-size: 11px; color: #596681; }
h1 { margin: 0; font-size: 23px; }
.account { overflow-wrap: anywhere; }
@media (max-width: 420px) { .card { padding: 24px; } }
