:root {
  color-scheme: light;
  --ink: #111111;
  --muted: rgba(29, 29, 31, 0.52);
  --line: rgba(0, 0, 0, 0.08);
  --page: #ffffff;
  --field: #f6f7f8;
  --field-focus: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.08);
}

.close-link {
  position: fixed;
  top: 24px;
  right: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: #ffffff;
  color: rgba(29, 29, 31, 0.72);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}

.agent-zone {
  width: 100px;
  height: 84px;
  justify-self: center;
  display: grid;
  place-items: center;
  user-select: none;
}

.agent-logo {
  width: 72px;
  height: 72px;
  overflow: visible;
  --look-x: 0px;
  --look-y: 0px;
}

.agent-shell,
.glyph-line {
  fill: none;
  stroke: rgba(34, 38, 45, 0.9);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-shell {
  stroke-width: 18;
}

.glyph-line {
  stroke-width: 22;
}

.agent-shell-wrap {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transition: transform 620ms cubic-bezier(.28, 0, .16, 1);
}

.agent-logo.is-awake .agent-shell-wrap {
  transform: rotate(90deg);
}

.sleep-glyph,
.face-glyph {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transition: opacity 280ms cubic-bezier(.4, 0, .2, 1), transform 520ms cubic-bezier(.28, 0, .16, 1);
}

.sleep-glyph {
  opacity: 1;
}

.face-glyph {
  opacity: 0;
  transform: scale(.86);
}

.agent-logo.is-awake .sleep-glyph {
  opacity: 0;
  transform: scale(.9) rotate(18deg);
}

.agent-logo.is-awake .face-glyph {
  opacity: 1;
  transform: scale(1);
}

.eye-group {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 130ms cubic-bezier(.22, 1, .36, 1);
}

.overline {
  justify-self: center;
  margin: 0 0 6px;
  color: rgba(29, 29, 31, 0.42);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.12em;
}

.auth-form {
  width: min(100%, 356px);
  justify-self: center;
  display: grid;
  gap: 10px;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.auth-form input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

.auth-form input:focus {
  background: var(--field-focus);
  box-shadow: inset 0 0 0 1px var(--line);
}

.password-policy {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.primary-action,
.secondary-action {
  width: min(100%, 356px);
  justify-self: center;
  height: 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
}

.primary-action {
  margin-top: 4px;
  border: 0;
  background: #111111;
  color: #ffffff;
}

.secondary-action {
  display: grid;
  place-items: center;
  margin-top: -4px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #111111;
  text-decoration: none;
}

.forgot-link {
  justify-self: center;
  margin-top: -2px;
  color: rgba(29, 29, 31, 0.42);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.forgot-link:hover {
  color: rgba(29, 29, 31, 0.72);
}

.status {
  width: min(100%, 356px);
  min-height: 0;
  justify-self: center;
  margin: 0;
  color: rgba(29, 29, 31, 0.54);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.status:not(:empty) {
  min-height: 16px;
}

.status.is-error {
  color: #b42318;
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 18px;
  }

  .auth-card {
    padding: 26px 20px;
    border-radius: 28px;
    box-shadow: none;
  }
}
