:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172033;
  background: #f5f6fa;
  --accent: #5136b8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  width: min(100%, 880px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #dce0eb;
  border-radius: 16px;
  background: white;
}

.auth-brand {
  background: #172033;
  color: white;
  padding: clamp(24px, 5vw, 52px);
}

.wordmark {
  font-size: 1.6rem;
  font-weight: 750;
}

.auth-brand p {
  max-width: 23ch;
  color: #bfeaf2;
  font-size: 1.15rem;
  line-height: 1.6;
}

.auth-content {
  align-self: center;
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
}

h1 { margin: 0; overflow-wrap: anywhere; }
p { line-height: 1.5; }
#auth-intro, #account-email, small { color: #505c70; }
#account-email { overflow-wrap: anywhere; }
.status:empty { display: none; }
.status { color: #1b6246; }
.status.error { color: #a02336; }
.field { margin-bottom: 18px; }
label, small { display: block; margin-bottom: 6px; }
label { font-weight: 650; }
small { margin-top: 6px; }

input, button, .primary {
  font: inherit;
  min-height: 44px;
  border-radius: 7px;
}

input {
  width: 100%;
  border: 1px solid #aab4c5;
  padding: 8px 12px;
  color: inherit;
  background: white;
}

.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.toggle-password {
  position: absolute;
  inset-block: 0;
  right: 4px;
  padding-inline: 10px;
}

button, .primary { cursor: pointer; }
button:disabled { opacity: 0.65; cursor: wait; }
button, .primary { font-weight: 650; }
.primary {
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.secondary, .toggle-password {
  border: 0;
  background: transparent;
  color: var(--accent);
}

.secondary { width: 100%; margin-top: 8px; }
:focus-visible { outline: 3px solid #08768a; outline-offset: 3px; }

@media (max-width: 620px) {
  body { padding: 16px; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand p { margin-bottom: 0; max-width: none; }
}
