.auth-body {
  margin: 0;
  color: #1a3550;
  background: #8dddf7;
  font-family: "Inter Variable", system-ui, sans-serif;
}
.auth-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 3vw, 40px);
}
.auth-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 82%, #c9f1fc 0%, #9ae2f8 49%, #78d2f2 100%);
}
.auth-cloud, .auth-wave, .auth-art { position: absolute; }
.auth-cloud {
  width: clamp(150px, 19vw, 300px);
  aspect-ratio: 2.9;
  border-radius: 50%;
  background: #dff6ff;
  opacity: .57;
}
.auth-cloud::before, .auth-cloud::after {
  position: absolute;
  bottom: 18%;
  content: "";
  border-radius: 50%;
  background: inherit;
}
.auth-cloud::before { width: 52%; aspect-ratio: 1; left: 5%; }
.auth-cloud::after { width: 38%; aspect-ratio: 1; right: 10%; }
.cloud-left { left: -6%; top: 14%; }
.cloud-right { right: -5%; top: 10%; transform: scaleX(-1); }
.cloud-bottom-left { bottom: 12%; left: 0; transform: scale(1.85); }
.cloud-bottom-right { bottom: 10%; right: 0; transform: scale(-1.95, 1.95); }
.auth-wave {
  width: 108%;
  height: 33%;
  bottom: -23%;
  border-radius: 48% 54% 0 0;
  background: #61c9ee;
  opacity: .64;
}
.wave-back { left: -51%; transform: rotate(13deg); box-shadow: 92vw -20px 0 #75d1ef; }
.wave-front { right: -47%; transform: rotate(-12deg); box-shadow: -91vw -3px 0 #5bc1ed; opacity: .65; }
.auth-icon { width: 1em; height: 1em; display: inline-block; fill: currentColor; flex: none; vertical-align: -.125em; }
.auth-art { color: #e6f8ff; line-height: 1; }
.art-controller { left: 7%; top: 42%; font-size: clamp(65px, 13vw, 172px); transform: rotate(-18deg); opacity: .88; }
.art-robot { right: 11%; top: 19%; font-size: clamp(40px, 6vw, 82px); color: #3b9bdc; transform: rotate(-15deg); opacity: .55; }
.art-trophy { right: 8%; top: 59%; font-size: clamp(54px, 9vw, 115px); transform: rotate(13deg); opacity: .82; }
.art-star-left, .art-star-right { color: #ffe27d; font-size: clamp(30px, 4vw, 60px); filter: drop-shadow(0 2px 0 #fff2bc); }
.art-star-left { top: 21%; left: 16%; transform: rotate(-12deg); }
.art-star-right { top: 43%; right: 14%; transform: rotate(11deg); }

.auth-card {
  width: min(100%, 570px);
  padding: clamp(22px, 4.2vw, 47px);
  border: 1px solid #fff;
  border-radius: clamp(22px, 3.5vw, 40px);
  background: linear-gradient(150deg, #f4f9fc, #fff 48%, #f1f8fc);
  box-shadow: 0 14px 38px #14649235;
}
.auth-card-register { width: min(100%, 590px); padding-block: clamp(21px, 3vw, 35px); }
.auth-heading { text-align: center; margin-bottom: clamp(18px, 3vw, 30px); }
.auth-logo {
  display: block;
  width: min(82%, 365px);
  height: auto;
  margin: 0 auto clamp(18px, 3.5vw, 31px);
}
.auth-card-register .auth-logo { margin-bottom: 20px; }
.auth-heading h1 { font-size: clamp(1.45rem, 3.4vw, 2.25rem); font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
.auth-heading p { margin: 0; color: #4c6075; font-size: clamp(.85rem, 1.7vw, 1rem); }
.auth-form { display: grid; gap: 15px; }
.auth-card-register .auth-form { gap: 12px; }
.auth-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  min-width: 0;
  padding-inline: 14px;
  border: 1px solid #c8d5e3;
  border-radius: 12px;
  background: #fbfcfe;
  color: #647d98;
}
.auth-card-register .auth-field { min-height: 46px; }
.auth-field:focus-within { border-color: #1680ed; box-shadow: 0 0 0 3px #1680ed24; }
.auth-field > .auth-icon { font-size: 1.22rem; }
.auth-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 0;
  padding: 7px 0;
  outline: none;
  background: transparent;
  color: #1a3550;
  font: inherit;
}
.auth-field input::placeholder, .auth-date label { color: #556579; opacity: 1; }
.auth-date label { white-space: nowrap; cursor: pointer; }
.auth-date input { color-scheme: light; }
.auth-password button {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  margin-inline-end: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: #58718c;
  font-size: 1.2rem;
}
.auth-eye, .auth-eye-off { line-height: 1; }
.auth-eye-off, [data-auth-password][aria-pressed="true"] .auth-eye { display: none; }
[data-auth-password][aria-pressed="true"] .auth-eye-off { display: block; }
.auth-remember, .auth-options label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-remember { justify-self: start; }
.auth-remember input, .auth-options input { width: 18px; height: 18px; accent-color: #076cde; }
.auth-gender { min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-gender legend { float: none; width: auto; margin: 0 0 6px; font-size: .91rem; font-weight: 700; }
.auth-options { display: flex; flex-wrap: wrap; gap: 6px 19px; color: #3e536b; font-size: .91rem; }
.auth-captcha { display: grid; grid-template-columns: minmax(75px, 32%) minmax(0, 1fr); align-items: center; gap: 12px; }
.auth-captcha img { display: block; width: 100%; max-width: 140px; height: auto; border-radius: 7px; }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 53px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(175deg, #087cda, #0354d9);
  box-shadow: 0 4px 10px #086ad13a;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 750;
}
.auth-submit:hover { background: linear-gradient(175deg, #076bc1, #0649c2); }
.auth-submit .auth-icon { font-size: 1.4em; }
.auth-switch { margin: 20px 0 0; text-align: center; font-size: .95rem; }
.auth-switch a { margin-inline-start: .15em; font-weight: 750; }
.auth-return {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2vw, 16px);
  margin-top: clamp(17px, 3vw, 28px);
  text-align: center;
  font-size: .91rem;
}
.auth-return::before, .auth-return::after { content: ""; flex: 1; min-width: 4px; height: 1px; background: #d6e1ed; }
.auth-return a { display: inline-flex; align-items: center; gap: 7px; }
.auth-return .auth-icon { font-size: 1.22em; }
.auth-card a { color: #075dc4; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }
.auth-card :is(button, a, input[type="checkbox"], input[type="radio"]):focus-visible { outline: 2px solid #075dc4; outline-offset: 3px; }
.auth-notice { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fff1d6; color: #674600; overflow-wrap: anywhere; }
.auth-notice-success { background: #e4f4e9; color: #215533; }

@media (max-width: 660px) {
  .auth-art { opacity: .25; }
  .auth-card { padding-inline: clamp(16px, 5vw, 30px); }
  .auth-form, .auth-card-register .auth-form { gap: 11px; }
  .auth-field { font-size: 1rem; gap: 8px; padding-inline: 10px; }
  .auth-options { gap: 6px 12px; }
}
