:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #f5f5f7; }

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .96) 0, rgba(255, 255, 255, .62) 34%, transparent 62%),
    linear-gradient(180deg, #f7f7f9 0%, #f0f1f3 100%);
}

.login-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  gap: 18px;
}

.login-card {
  width: 100%;
  padding: 30px 24px 22px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 22px 60px rgba(22, 24, 28, .10), inset 0 0 0 .5px rgba(60, 60, 67, .08);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.login-header { text-align: center; }

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  place-items: center;
  border-radius: 16px;
  background: #1d1d1f;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.eyebrow {
  margin: 18px 0 8px;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.login-header > p:last-child {
  max-width: 18em;
  margin: 12px auto 0;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.5;
}

.login-form {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(60, 60, 67, .12);
}

label {
  display: block;
  margin: 0 2px 8px;
  font-size: 13px;
  font-weight: 600;
}

input,
button {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

input {
  border: 1px solid rgba(60, 60, 67, .20);
  padding: 0 16px;
  background: rgba(255, 255, 255, .86);
  color: #1d1d1f;
  font-size: 18px;
  letter-spacing: .12em;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

input::placeholder {
  color: #8e8e93;
  letter-spacing: 0;
}

input:focus-visible {
  outline: 4px solid rgba(0, 122, 255, .14);
  border-color: #007aff;
}

button {
  margin-top: 12px;
  border: 0;
  background: #1d1d1f;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transition: transform 100ms ease-out, background-color 100ms ease-out;
}

button:active {
  transform: scale(.985);
  background: #343438;
}

button:focus-visible {
  outline: 4px solid rgba(0, 122, 255, .18);
  outline-offset: 3px;
}

.login-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #b42318;
  background: #fff0ef;
  font-size: 13px;
  line-height: 1.4;
}

.privacy-note {
  margin: 15px 2px 0;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-note {
  margin: 0;
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@media (max-height: 620px) {
  .login-shell { align-content: start; }
  .login-card { padding-top: 24px; }
  .login-form { margin-top: 20px; padding-top: 18px; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .login-card {
    border-color: rgba(60, 60, 67, .14);
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

