:root {
  color-scheme: light;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  color: #302d4b;
  background: #f1f2f9;
  accent-color: #65558e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.login {
  width: min(100%, 320px);
  text-align: center;
}

.symbol {
  display: block;
  width: 100px;
  height: 74px;
  margin: 0 auto 26px;
}

h1 {
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .14em;
}

form { position: relative; }

input {
  display: block;
  width: 176px;
  height: 52px;
  margin: 0 auto;
  padding: 8px 14px;
  border: 1px solid #b6b0c8;
  border-radius: 10px;
  outline: 2px solid transparent;
  outline-offset: 3px;
  background: #fafaff;
  color: #302d4b;
  caret-color: #65558e;
  font: 24px/1.4 "Segoe UI", "Malgun Gothic", sans-serif;
  text-align: center;
  letter-spacing: .24em;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

input:focus-visible { outline-color: #65558e; }
input[aria-invalid="true"] { border-color: #a43b58; }
input[readonly] { background: #e9e7f1; cursor: wait; }
input:disabled { cursor: default; opacity: .65; }
input::selection { color: #fafaff; background: #65558e; }

#login-status {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  input { transition: none; }
}

@media (max-height: 400px) {
  body { padding-block: 20px 84px; }
  .symbol { margin-bottom: 16px; }
  h1 { margin-bottom: 20px; }
}
