:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    'Noto Sans JP',
    sans-serif;
  color: #ecf4fc;
  background: #071326;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
a {
  color: #bde3ef;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #c8ecff;
  outline-offset: 4px;
}
#authSky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  image-rendering: pixelated;
  pointer-events: none;
}
#starMascot {
  position: fixed;
  width: 160px;
  height: 160px;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url('/assets/auth/star-mascot.png');
  background-size: 200% 100%;
  background-position: left;
  filter: drop-shadow(0 0 9px #c4edfc66);
  will-change: transform;
}
#starMascot.is-smiling {
  background-position: right;
}
.auth-header {
  max-width: 1320px;
  margin: auto;
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  color: #f1f4f0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #afc3d5;
  margin-top: 6px;
}
.quiet-link {
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  color: #c1d3e2;
}
.quiet-link span {
  margin-left: 10px;
}
.auth-layout {
  max-width: 1100px;
  margin: 35px auto 54px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  min-height: 590px;
}
.auth-intro {
  align-self: center;
  padding-bottom: 80px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #b2c9db;
}
.auth-intro h1 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.55;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 20px 0 24px;
  text-shadow: 0 2px 30px #5ac1e344;
}
.auth-intro p {
  font-size: 13px;
  line-height: 2;
  color: #bfd0df;
}
.intro-note {
  font-size: 11px;
  color: #91a9c0;
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.intro-note i {
  width: 4px;
  height: 4px;
  background: #a4d9c7;
  box-shadow: 0 0 9px #a4d9c7;
}
.auth-card {
  background: linear-gradient(140deg, #14253be8, #0d1b2fef);
  border: 1px solid #abc9e134;
  border-radius: 24px;
  padding: 30px;
  box-shadow:
    0 24px 85px #0005,
    inset 0 1px 0 #dfedff0b;
  backdrop-filter: blur(14px);
}
.auth-tabs {
  display: flex;
  background: #06102170;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}
.auth-tabs button {
  width: 50%;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  color: #9eafc4;
  font-size: 13px;
}
.auth-tabs button[aria-selected='true'] {
  background: #29405d;
  color: #eff8ff;
  box-shadow: 0 1px 8px #0003;
}
.auth-card h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 9px;
}
.card-description {
  font-size: 12px;
  color: #a9bbce;
  margin: 0 0 24px;
  line-height: 1.8;
}
.auth-card label {
  display: block;
  font-size: 12px;
  color: #d8e6ef;
  margin: 18px 0 8px;
}
.auth-card label span {
  font-size: 10px;
  color: #91a8bd;
  margin-left: 6px;
}
.auth-card input:not([type='checkbox']) {
  width: 100%;
  height: 46px;
  padding: 10px 13px;
  border: 1px solid #92bad33b;
  background: #0614239c;
  border-radius: 9px;
  color: #edf6fc;
  transition: border-color 0.2s;
}
.auth-card input::placeholder {
  color: #7490a4;
}
.auth-card input:focus {
  border-color: #9acddb;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 60px !important;
}
.password-field button {
  position: absolute;
  right: 7px;
  top: 6px;
  padding: 9px 7px;
  font-size: 11px;
  background: none;
  border: 0;
  color: #afc9df;
}
.auth-card small {
  display: block;
  color: #8fa9be;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 7px;
}
.form-link {
  display: block;
  text-align: right;
  margin: 12px 0 24px;
  font-size: 11px;
}
.primary {
  width: 100%;
  padding: 13px 17px;
  background: linear-gradient(110deg, #aed7db, #d2e8df);
  color: #102a35;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 15px #9bdddb14;
}
.primary:hover {
  filter: brightness(1.08);
}
.card-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #b4d5ea1a;
  text-align: center;
  color: #9fb2c6;
  font-size: 11px;
}
.card-bottom a {
  font-weight: 600;
  margin-left: 5px;
}
.auth-footer {
  padding: 15px 24px 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  font-size: 10px;
  color: #94a9bf;
}
.scene-dots {
  display: flex;
  justify-content: center;
  flex: 0 0 100%;
  gap: 0;
}
body[data-auth-page='login'] .auth-footer { row-gap: 0; }
.auth-footer .scene-dots button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.scene-dots button::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6e7e88c;
  box-shadow: 0 1px 4px #031024;
}
.scene-dots button[aria-pressed='true']::before { background: #e6f6e7; }
.scene-dots button:hover::before { background: #fff; }
.scene-dots button:focus-visible { outline: 2px solid #c7e8d9; outline-offset: -3px; border-radius: 50%; }
.scene-dots button:disabled { opacity: 0.3; cursor: default; }
.auth-footer a {
  text-decoration: none;
  color: inherit;
}
.auth-footer button {
  font-size: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
}
.message {
  font-size: 12px;
  line-height: 1.8;
  padding: 12px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.error {
  background: #742f373d;
  color: #ffcbca;
  border: 1px solid #ea868637;
}
.success {
  background: #244e483d;
  color: #cae8de;
  border: 1px solid #98c7bc40;
}
.resend-box {
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.resend-box button,
.secondary {
  color: #bde3ef;
  background: transparent;
  border: 1px solid #9dbfc54d;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12px;
}
.resend-box p {
  color: #b9cbd9;
}
.policy-check {
  padding: 14px;
  margin: 20px 0;
  background: #07152470;
  border: 1px solid #94b5cb26;
  border-radius: 10px;
}
.policy-check label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  margin: 12px 0 0;
  line-height: 1.7;
}
.policy-check input {
  accent-color: #a9d3da;
  width: 16px;
  height: 16px;
  flex: none;
  margin: 1px 0;
}
#registerForm .consent-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
}
#registerForm .consent-note input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
}
#registerForm .consent-note span {
  color: inherit;
  font: inherit;
}
#registerForm .consent-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #bce5ee;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-dialog {
  padding: 0;
  border: 1px solid #adc6dd4d;
  border-radius: 18px;
  max-width: 760px;
  width: calc(100% - 28px);
  max-height: 85svh;
  background: #142337;
  color: #e6eef4;
  box-shadow: 0 20px 100px #0008;
}
.policy-dialog::backdrop {
  background: #020918b3;
  backdrop-filter: blur(5px);
}
.policy-dialog header,
.policy-dialog footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
}
.policy-dialog header {
  border-bottom: 1px solid #abc6d82b;
}
.policy-dialog h2 {
  font-size: 18px;
  margin: 0;
}
.policy-dialog header button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 24px;
}
.policy-content {
  overflow: auto;
  max-height: 57svh;
  padding: 4px 24px 24px;
  font-size: 13px;
  line-height: 1.9;
}
.policy-content h1 {
  display: none;
}
.policy-content h2 {
  font-size: 15px;
  margin-top: 26px;
}
.policy-content .updated {
  color: #adc3d4;
  font-size: 11px;
}
.policy-content .back {
  display: none;
}
.policy-dialog footer .primary {
  width: auto;
}
.policy-dialog footer a {
  font-size: 12px;
}
.auth-single {
  max-width: 440px;
  margin: 55px auto 80px;
  padding: 0 16px;
}
.auth-single .auth-card {
  padding: 30px;
}
.auth-single .back-link {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
}
.auth-single h1 {
  font-size: 23px;
  margin: 0 0 16px;
}
.auth-single p {
  font-size: 13px;
  line-height: 1.9;
  color: #b3c5d5;
}
.auth-single .primary {
  margin-top: 18px;
}
.auth-card .primary:disabled {
  background: #5d7c8b;
}
.dev-link {
  display: block;
  overflow-wrap: anywhere;
  margin: 14px 0;
  font-size: 11px;
  color: #e9d3a1;
}
@media (max-width: 760px) {
  .auth-header {
    padding: 22px 22px;
    gap: 14px;
  }
  .brand {
    font-size: 15px;
  }
  .quiet-link {
    font-size: 10px;
  }
  .auth-layout {
    display: block;
    max-width: 460px;
    margin: 15px auto 28px;
    padding: 0 18px;
    min-height: 0;
  }
  .auth-intro {
    padding: 0 12px 22px;
  }
  .auth-intro h1 {
    font-size: 25px;
    line-height: 1.45;
    margin: 10px 0;
  }
  .auth-intro h1 br {
    display: none;
  }
  .auth-intro p {
    font-size: 11px;
    margin-bottom: 0;
  }
  .auth-intro .eyebrow {
    font-size: 9px;
  }
  .intro-note {
    display: none;
  }
  .auth-card {
    padding: 24px;
    border-radius: 18px;
  }
  .auth-footer {
    gap: 18px;
  }
  .auth-single {
    margin: 30px auto;
  }
  .policy-dialog footer {
    padding: 14px;
    font-size: 11px;
  }
  .policy-content {
    padding: 0 18px 20px;
  }
  #starMascot {
    width: 88px;
    height: 88px;
  }
  .auth-tabs {
    margin-bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.auth-single a.primary {
  display: block;
  text-align: center;
  text-decoration: none;
}
.auth-single .back-link {
  display: block;
}
.auth-single [data-open-policy] {
  background: transparent;
  color: #bde3ef;
  border: 0;
  text-decoration: underline;
  font: inherit;
  padding: 0;
  text-align: left;
}
/* Login copy and village scene share the existing account forms. */
body[data-auth-page='login'] .auth-header,
body[data-auth-page='login'] .auth-layout,
body[data-auth-page='login'] .auth-footer {
  position: relative;
  z-index: 1;
}
body[data-auth-page='login'] .auth-header {
  max-width: 1440px;
  padding: 27px 5vw;
}
body[data-auth-page='login'] .brand {
  font-size: 17px;
}
body[data-auth-page='login'] .brand span {
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 800;
  color: #e3f9f4;
  letter-spacing: 0.035em;
  margin-top: 5px;
}
.guest-entry {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #142e35;
  background: #d5efdf;
  border: 1px solid #eefbe4;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 5px 28px #0003;
  white-space: nowrap;
}
.guest-entry:hover {
  background: #eefff2;
}
.guest-entry-options{display:grid;gap:7px;flex:none}
.guest-bgm-choice{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:6px 12px;border:1px solid #d2b36a;border-radius:8px;background:#172f3bea;color:#ffedba;font-size:14px;font-weight:700;box-shadow:inset 0 0 0 2px #d2b36a12,0 3px 15px #0002;cursor:pointer}
.guest-bgm-choice:has(input:checked){background:linear-gradient(110deg,#3b442f,#283e38);border-color:#ecd08a;box-shadow:inset 0 0 0 2px #ecd08a16,0 0 14px #edd28820}
.guest-bgm-choice:hover{border-color:#fff0bd}
.guest-bgm-choice input[type=checkbox]{appearance:auto;width:18px;height:18px;margin:0;accent-color:#ecd08a;flex:none}
.guest-bgm-choice:focus-within{outline:2px solid #fff0bd;outline-offset:3px}
@media(max-width:760px){.guest-entry-options{gap:5px}.guest-bgm-choice{font-size:12px;min-height:44px;padding:5px 7px;gap:6px}}
body[data-auth-page='login'] .auth-layout {
  max-width: 1240px;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 65px;
  margin: 20px auto 30px;
  min-height: 480px;
  padding: 0 40px;
}
body[data-auth-page='login'] .auth-intro {
  padding-bottom: 55px;
  text-shadow: 0 2px 15px #06131f;
}
body[data-auth-page='login'] .eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #d4e3ea;
}
body[data-auth-page='login'] .auth-intro h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: 0.025em;
  line-height: 1.5;
  font-weight: 750;
  margin: 16px 0 30px;
}
.auth-intro h1 em {
  font-style: normal;
  color: #d0f1e0;
  /* 淡い光が文字の上をゆっくり流れる */
  background: linear-gradient(100deg, #d0f1e0 0%, #d0f1e0 35%, #fff8dc 50%, #d0f1e0 65%, #d0f1e0 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auth-shimmer 9s linear infinite;
}
@keyframes auth-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* カードの縁がほのかに呼吸する */
.auth-card {
  animation: auth-card-breathe 7s ease-in-out infinite;
}
@keyframes auth-card-breathe {
  0%,
  100% {
    box-shadow:
      0 24px 85px #0005,
      0 0 0 0 #c4edfc00,
      inset 0 1px 0 #dfedff0b;
  }
  50% {
    box-shadow:
      0 24px 85px #0005,
      0 0 42px 2px #c4edfc22,
      inset 0 1px 0 #dfedff0b;
  }
}
.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.auth-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.auth-features li > span {
  font-size: 22px;
  color: #e4d6a0;
  width: 25px;
  flex: none;
  text-align: center;
  line-height: 1.2;
}
.auth-features strong {
  font-size: 15px;
  font-weight: 700;
  color: #f4f8ee;
}
body[data-auth-page='login'] .auth-features p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: #c5d6e1;
}
body[data-auth-page='login'] .auth-card {
  background: linear-gradient(145deg, #12293cef, #091b2aec);
  border-color: #c3e2de46;
  box-shadow: 0 20px 70px #0007;
}
body[data-auth-page='login'] .auth-footer {
  color: #e4eff3;
  text-shadow: 0 1px 8px #000;
}
#starMascot {
  width: 105px;
  height: 105px;
  z-index: 0;
  transform-origin: center;
}
@media (max-width: 900px) and (min-width: 761px) {
  body[data-auth-page='login'] .auth-layout {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 355px;
    padding: 0 25px;
  }
}
@media (max-width: 760px) {
  body[data-auth-page='login'] .auth-header {
    padding: 18px;
    gap: 14px;
    align-items: center;
  }
  body[data-auth-page='login'] .brand {
    font-size: 13px;
    letter-spacing: 0;
  }
  body[data-auth-page='login'] .brand span {
    font-size: 12px;
    letter-spacing: 0;
  }
  .guest-entry {
    padding: 11px 12px;
    font-size: 11px;
    gap: 8px;
    border-radius: 9px;
  }
  body[data-auth-page='login'] .auth-layout {
    display: block;
    max-width: 500px;
    margin: 15px auto 25px;
    padding: 0 20px;
    min-height: 0;
  }
  body[data-auth-page='login'] .auth-intro {
    padding: 12px 4px 28px;
  }
  body[data-auth-page='login'] .auth-intro h1 {
    font-size: 29px;
    line-height: 1.45;
    margin: 10px 0 22px;
  }
  body[data-auth-page='login'] .auth-intro h1 br {
    display: initial;
  }
  body[data-auth-page='login'] .eyebrow {
    font-size: 11px;
  }
  .auth-features {
    gap: 14px;
  }
  .auth-features strong {
    font-size: 13px;
  }
  body[data-auth-page='login'] .auth-features p {
    font-size: 11px;
    margin-top: 3px;
  }
  #starMascot {
    width: 70px;
    height: 70px;
  }
  body[data-auth-page='login'] .auth-card {
    padding: 22px;
  }
}
@media (max-width: 370px) {
  .guest-entry {
    white-space: normal;
    max-width: 125px;
  }
  body[data-auth-page='login'] .brand span {
    font-size: 11px;
  }
}

/* Mobile account flows: keep the form near the introduction and avoid input zoom. */
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  body { overflow-wrap: anywhere; }
  body[data-auth-page='login'] .auth-header {
    padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    gap: 8px;
  }
  .auth-header .brand { min-width: 0; }
  .guest-entry { min-height: 44px; flex: none; }
  body[data-auth-page='login'] .auth-layout {
    margin: 6px auto 12px;
    padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  }
  body[data-auth-page='login'] .auth-intro { padding: 4px 2px 14px; }
  body[data-auth-page='login'] .auth-intro h1 { font-size: clamp(23px, 6.4vw, 29px); margin: 6px 0 12px; }
  .auth-features { gap: 7px; }
  .auth-features li { gap: 8px; align-items: center; }
  .auth-features li > span { font-size: 17px; width: 20px; }
  body[data-auth-page='login'] .auth-features p { display: none; }
  body[data-auth-page='login'] .auth-card,
  .auth-single .auth-card { padding: 16px; border-radius: 16px; }
  .auth-tabs { margin-bottom: 15px; }
  .auth-tabs button { min-height: 44px; }
  .auth-card h2 { font-size: 20px; }
  .card-description { margin-bottom: 14px; }
  .auth-card label { margin: 12px 0 6px; font-size: 13px; }
  .auth-card input:not([type='checkbox']) { min-width: 0; font-size: 16px; scroll-margin-block: 20px; }
  .password-field button { top: 1px; right: 1px; min-width: 50px; min-height: 44px; padding: 8px; }
  .primary, .secondary, .resend-box button { min-height: 44px; }
  .form-link { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin: 4px 0 10px; font-size: 12px; }
  .policy-check { margin: 14px 0; padding: 10px; }
  .policy-check .text-button { min-height: 44px; }
  .policy-check label { min-height: 44px; align-items: center; margin-top: 2px; }
  .policy-check input { width: 20px; height: 20px; }
  .auth-footer { gap: 4px 16px; padding: 6px 12px max(10px, env(safe-area-inset-bottom)); font-size: 11px; }
  .auth-footer a, .auth-footer button { display: inline-flex; align-items: center; min-height: 44px; }
  .auth-single { margin: 12px auto; }
  .policy-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .policy-dialog[open] { display: flex; flex-direction: column; }
  .policy-dialog header, .policy-dialog footer { flex: none; padding: 8px 12px; gap: 8px; }
  .policy-dialog h2 { font-size: 16px; }
  .policy-dialog header button { width: 44px; height: 44px; flex: none; }
  .policy-content { flex: 1; min-height: 0; max-height: none; padding: 0 14px 14px; overscroll-behavior: contain; }
  .policy-dialog footer a { min-height: 44px; display: flex; align-items: center; }
  .policy-dialog footer .primary { padding-inline: 10px; }
}

/* 登録欄: 満たしていない条件は赤字（暗い地でも読める明るい赤）。全部そろうまで送信ボタンは押せない */
.auth-card small.field-error,
.auth-card .field-error {
  color: #ff9c96;
  font-weight: 600;
}
.auth-card small.field-error:before { content: '※'; margin-right: 2px; }
.register-needs {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.register-needs:empty,
.register-needs[hidden] { display: none; }
/* Align the guest entrance with the form edge; keep registration compact. */
@media(min-width:761px){
 body[data-auth-page='login']{display:flex;flex-direction:column;min-height:100svh}
 body[data-auth-page='login']>.auth-header{width:100%;flex:none;margin: auto auto 0}
 body[data-auth-page='login']>.auth-layout{width:100%;flex:none}
 body[data-auth-page='login']>.auth-footer{width:100%;flex:none;margin:0 auto auto}
}
body[data-auth-page='login'] .auth-header {max-width:1240px;padding:16px 40px 8px;}
body[data-auth-page='login'] .auth-layout {margin-top:8px;}
body[data-auth-page='login'] .auth-card:has(#registerPanel:not([hidden])) {padding:20px 24px;}
body[data-auth-page='login'] .auth-card:has(#registerPanel:not([hidden])) .auth-tabs {margin-bottom:14px;}
#registerPanel h2 {margin-bottom:5px;font-size:20px;}
#registerPanel .card-description {margin-bottom:10px;}
#registerForm > label {margin:12px 0 5px;}
#registerForm input:not([type='checkbox']) {height:44px;}
#registerForm .policy-check {margin:12px 0;padding:8px 12px;}
#registerForm .policy-check label {margin-top:5px;}
#registerForm small {margin-top:4px;}
@media (min-width:761px) and (max-width:900px) {
  body[data-auth-page='login'] .auth-header {padding-right:25px;padding-left:25px;}
}
@media (max-width:760px), (max-height:520px) and (pointer:coarse) {
  body[data-auth-page='login'] .auth-header {max-width:500px;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));}
  body[data-auth-page='login'] .auth-card:has(#registerPanel:not([hidden])) {padding:14px 16px;}
  body[data-auth-page='login'] .auth-card:has(#registerPanel:not([hidden])) .auth-tabs {margin-bottom:10px;}
  #registerForm .policy-check {padding:6px 10px;margin:10px 0;}
  #registerForm .policy-check label {margin-top:0;}
}
