/* Login surfaces have explicit colours in both system appearance modes. */
.auth-layout {
  min-height: 100svh;
  background: #181a1b;
  color: #f5f2ed;
  grid-template-columns: 1.1fr 1fr;
}
.auth-story {
  background: #202324;
  padding: max(48px, env(safe-area-inset-top)) 10% 40px;
  gap: 48px;
}
.auth-story .brand { color: #f5f2ed; }
.auth-story h1 { font-size: clamp(40px, 4.5vw, 68px); letter-spacing: -2px; }
.auth-story .auth-description { color: #c1c3bf; font-size: 17px; max-width: 360px; }
.auth-story .eyebrow { color: #ffb17e; }
.auth-story .caption { color: #afb4b1; }
.auth-story:after { color: #2c3030; right: -20px; }
.auth-form { background: #181a1b; padding: 56px 36px; }
.auth-form form { width: 380px; }
.auth-form .eyebrow { color: #ffb17e; margin: 0 0 12px; font-size: 10px; }
.auth-form h2 { color: #f5f2ed; font-size: 32px; margin: 0 0 12px; line-height: 1.15; }
.auth-form .muted { color: #b9bebb; font-size: 15px; margin: 0 0 28px; }
.auth-form label { color: #e4e7e3; font-size: 14px; margin-top: 20px; gap: 9px; }
.auth-form input {
  background: #252829;
  color: #f5f2ed;
  border: 1px solid #626967;
  border-radius: 12px;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
}
.auth-form input:focus { outline: 2px solid #ffb17e; outline-offset: 2px; border-color: transparent; }
.auth-form .primary { background: #ffb17e; color: #24190f; border-radius: 12px; min-height: 52px; font-size: 16px; margin-top: 20px; }
.auth-form .primary:hover { background: #ffc49e; }
.auth-form .error { color: #ffaaa2; margin: 12px 0 0; min-height: 0; line-height: 1.5; }
.auth-form .error:empty { display: none; }
.auth-help { font-size: 12px; line-height: 1.6; color: #b9bebb; margin: 20px 0 0; text-align: center; }
@media (max-width: 700px) {
  .auth-layout { display: flex; flex-direction: column; }
  .auth-story {
    padding: calc(22px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-left)) 24px;
    gap: 25px;
    flex-shrink: 0;
    border-bottom: 1px solid #353a39;
  }
  .auth-story .brand { font-size: 28px; line-height: 1; }
  .auth-story .brand span { display: block; font-size: 8px; letter-spacing: 1.5px; }
  .auth-story .eyebrow { font-size: 9px; letter-spacing: 1.8px; margin: 0 0 10px; }
  .auth-story h1 { font-size: 32px; letter-spacing: -1px; line-height: 1.1; margin: 0; }
  .auth-story .auth-description, .auth-story .caption { display: none; }
  .auth-story:after { font-size: 170px; bottom: 8px; right: 12px; }
  .auth-form {
    align-items: flex-start;
    flex: 1;
    padding: 28px max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom));
  }
  .auth-form form { width: 420px; }
  .auth-form .eyebrow { display: none; }
  .auth-form h2 { font-size: 26px; margin-bottom: 8px; }
  .auth-form .muted { font-size: 14px; margin-bottom: 22px; }
  .auth-form label { margin-top: 18px; }
  .auth-help { margin-top: 18px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .auth-story { gap: 18px; padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 20px; }
  .auth-story h1 { font-size: 28px; }
  .auth-form { padding-top: 24px; }
}
