body[data-auth-page="login"],
body[data-auth-page="register"] {
  position: relative;
  background:
    radial-gradient(640px 420px at 50% 38%, rgb(141 141 141 / 24%), transparent 68%),
    radial-gradient(420px 320px at 32% 62%, rgb(107 107 107 / 18%), transparent 70%),
    radial-gradient(420px 320px at 68% 58%, rgb(160 160 160 / 14%), transparent 70%),
    #0f0f0f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-auth-page="login"] .auth-page,
body[data-auth-page="register"] .auth-page {
  width: min(calc(100% - 32px), 412px);
  margin: clamp(32px, 7vh, 72px) auto 56px;
  padding: 38px 32px 32px;
  align-items: stretch;
  border: 1px solid rgb(186 186 186 / 28%);
  border-radius: 22px;
  background: linear-gradient(155deg, rgb(119 119 119 / 15%), rgb(16 16 16 / 76%) 55%, rgb(91 91 91 / 17%));
  background-clip: padding-box;
  box-shadow:
    0 24px 60px rgb(0 0 0 / 56%),
    0 0 48px rgb(145 145 145 / 14%),
    inset 0 1px 0 rgb(225 225 225 / 16%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body[data-auth-page] .auth-page h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #ffffff;
  text-align: left;
}

body[data-auth-page] .auth-subtitle {
  margin: 0 0 26px;
  color: rgb(235 235 235 / 76%);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

body[data-auth-page] .auth-form {
  margin-top: 0;
  gap: 14px;
}

.auth-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

body[data-auth-page] .auth-form input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 46px 0 16px;
  border: 1px solid rgb(190 190 190 / 28%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
  background-clip: padding-box;
  color: #ffffff;
  font-size: 14px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body[data-auth-page] .auth-form input::placeholder {
  color: rgb(224 224 224 / 52%);
}

body[data-auth-page] .auth-form input:focus {
  outline: none;
  border-color: rgb(181 181 181 / 72%);
  background: rgb(177 177 177 / 7%);
  box-shadow: 0 0 0 3px rgb(176 176 176 / 14%);
}

body[data-auth-page] .auth-form .auth-field-icon,
body[data-auth-page] .auth-form .auth-field-toggle {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgb(243 243 243 / 82%);
}

body[data-auth-page] .auth-form .auth-field-icon {
  pointer-events: none;
}

body[data-auth-page] .auth-form .auth-field-toggle {
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

body[data-auth-page] .auth-form .auth-field-toggle:hover {
  color: #ffffff;
  background: rgb(181 181 181 / 16%);
}

.auth-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-auth-page] .auth-form button[type="submit"],
body[data-auth-page] .auth-form button[data-resend-code] {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgb(184 184 184 / 52%);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(152 152 152 / 36%), rgb(98 98 98 / 28%));
  background-clip: padding-box;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body[data-auth-page] .auth-form button[type="submit"]:hover:not(:disabled),
body[data-auth-page] .auth-form button[data-resend-code]:hover:not(:disabled) {
  border-color: rgb(190 190 190 / 80%);
  background: linear-gradient(180deg, rgb(161 161 161 / 52%), rgb(112 112 112 / 44%));
  box-shadow: 0 0 22px rgb(153 153 153 / 32%);
}

body[data-auth-page] .auth-form button[data-resend-code] {
  margin-top: 0;
  background: rgb(255 255 255 / 4%);
  border-color: rgb(190 190 190 / 28%);
}

body[data-auth-page] [data-confirm-email]:not([hidden]) {
  margin-top: 18px;
}

body[data-auth-page] .auth-status {
  margin: 14px 0 0;
  min-height: 18px;
  font-size: 13px;
  text-align: left;
  color: rgb(230 230 230 / 78%);
}

body[data-auth-page] .auth-status:empty {
  display: none;
}

body[data-auth-page] .auth-error {
  color: #c2c2c2;
}

body[data-auth-page] .auth-switch {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgb(230 230 230 / 74%);
  text-align: left;
}

body[data-auth-page] .auth-switch a {
  color: #bdbdbd;
  font-weight: 600;
  text-decoration: none;
}

body[data-auth-page] .auth-switch a:hover {
  color: #cccccc;
  text-decoration: underline;
}

@media (max-width: 767px) {
  body[data-auth-page="login"] .auth-page,
  body[data-auth-page="register"] .auth-page {
    width: calc(100% - 24px);
    margin: 22px auto 36px;
    padding: 30px 22px 26px;
    border-radius: 20px;
  }

  body[data-auth-page] .auth-page h1 {
    font-size: 28px;
  }

  body[data-auth-page] .auth-form input,
  body[data-auth-page] .auth-form button[type="submit"],
  body[data-auth-page] .auth-form button[data-resend-code] {
    font-size: 16px;
  }
}
.auth-email-hint {
  margin: 0 8px 8px;
  color: #c6c6c6;
  font-size: .8125rem;
  line-height: 1.5;
}
