.auth-body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(167, 185, 159, .28), transparent 30rem),
    radial-gradient(circle at 90% 86%, rgba(210, 174, 131, .25), transparent 26rem),
    var(--paper);
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.auth-card {
  width: min(100%, 440px);
  padding: clamp(26px, 6vw, 42px);
  border: 1px solid rgba(48, 67, 57, .13);
  border-radius: 30px;
  background: rgba(255, 254, 250, .9);
  box-shadow: 0 28px 80px rgba(45, 57, 50, .13);
  backdrop-filter: blur(18px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.auth-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.auth-brand strong { font-size: 18px; }
.auth-brand small { color: var(--muted); font-size: 12px; }

.auth-copy { margin: 38px 0 24px; }
.auth-copy h1 { margin: 8px 0 10px; font-size: clamp(34px, 9vw, 48px); letter-spacing: -.045em; }
.auth-copy p { margin: 0; color: var(--muted); line-height: 1.75; }

.auth-form { display: grid; gap: 16px; }
.auth-form .field { width: 100%; }
.auth-submit { width: 100%; margin-top: 4px; }

.auth-error {
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(160, 65, 52, .2);
  border-radius: 14px;
  color: #8f3428;
  background: #fff1ed;
  line-height: 1.5;
}

.auth-footnote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-footnote .privacy-dot { flex: 0 0 auto; margin-top: 5px; }

.scan-card { text-align: center; }
.scan-card .auth-copy { margin-top: 28px; }
.scan-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 28px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 18px 38px rgba(36, 55, 45, .2);
}
.scan-mark span { font-family: Georgia, serif; font-size: 38px; }
.scan-mark i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border: 5px solid var(--paper-light);
  border-radius: 50%;
  background: #6e8c70;
}
.auth-retry { width: 100%; text-decoration: none; }

@media (max-width: 520px) {
  .auth-shell { align-items: stretch; padding: 0; }
  .auth-card {
    width: 100%;
    min-height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .auth-copy { margin-top: 46px; }
}
