@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Megrim&display=swap");

:root {
  color-scheme: dark;
  --ink: #061317;
  --white: #ffffff;
  --cyan: #18d9da;
  --cyan-bright: #58f0ed;
  --cyan-deep: #0bb3b8;
  --muted: rgba(231, 244, 245, 0.66);
  --line: rgba(255, 255, 255, 0.18);
  --danger: #ff8d9a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 40px);
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-video {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  object-position: center;
  background: var(--ink);
  transform: scale(1.015);
}

.video-shade {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 26%, rgba(8, 21, 25, 0.05), rgba(4, 15, 19, 0.48) 64%),
    linear-gradient(90deg, rgba(3, 12, 16, 0.5), rgba(3, 12, 16, 0.1) 54%, rgba(3, 12, 16, 0.28));
}

.login-shell {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100dvh - clamp(32px, 6vw, 80px)));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(4, 16, 20, 0.18);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.48), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.story-panel {
  min-width: 0;
  position: relative;
  padding: clamp(32px, 4.5vw, 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, rgba(3, 13, 17, 0.72), rgba(3, 13, 17, 0.2) 72%),
    linear-gradient(180deg, rgba(18, 217, 218, 0.05), transparent 42%);
}

.story-panel::after {
  content: "";
  width: 340px;
  height: 340px;
  position: absolute;
  right: -190px;
  bottom: -210px;
  border: 1px solid rgba(88, 240, 237, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(88, 240, 237, 0.025), 0 0 0 130px rgba(88, 240, 237, 0.018);
  pointer-events: none;
}

.story-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup,
.mobile-brand {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 240, 237, 0.28);
  border-radius: 15px;
  background: rgba(2, 11, 14, 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-mark img,
.mobile-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.megrim-regular {
  font-family: "Megrim", system-ui, sans-serif;
}

.brand-name {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-name span {
  display: inline-block;
}

.accent-letter {
  color: var(--cyan-bright);
  text-shadow: 0 0 18px rgba(88, 240, 237, 0.58);
}

.system-status {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(4, 15, 18, 0.34);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(24, 217, 218, 0.12), 0 0 14px rgba(24, 217, 218, 0.8);
}

.story-content {
  max-width: 630px;
  margin: auto 0;
  position: relative;
  z-index: 1;
}

.story-eyebrow {
  margin: 0 0 17px;
  color: var(--cyan-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.story-title {
  max-width: 590px;
  margin: 0;
  padding-bottom: 0.12em;
  overflow: visible;
  color: #f7fdfd;
  font-size: clamp(3.1rem, 5.8vw, 5.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.065em;
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.46);
}

.story-title span {
  display: block;
  padding: 0 0.04em 0.12em 0;
  overflow: visible;
  color: var(--cyan-bright);
  text-shadow: 0 10px 38px rgba(24, 217, 218, 0.2), 0 12px 46px rgba(0, 0, 0, 0.4);
}

.auth-panel {
  min-width: 0;
  padding: clamp(32px, 4vw, 58px);
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at 100% 0, rgba(88, 240, 237, 0.12), transparent 32%),
    rgba(6, 21, 25, 0.52);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
  transition: color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(88, 240, 237, 0.5), transparent);
}

.mobile-brand,
.mobile-story {
  display: none;
}

.theme-toggle {
  width: 43px;
  height: 43px;
  position: absolute;
  top: clamp(22px, 3vw, 34px);
  right: clamp(22px, 3vw, 34px);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), 0 1px 0 rgba(255, 255, 255, 0.13) inset;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  color: var(--cyan-bright);
  border-color: rgba(88, 240, 237, 0.45);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(88, 240, 237, 0.4);
  outline-offset: 2px;
}

.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon {
  grid-area: 1 / 1;
  font-size: 1rem;
  transition: opacity 180ms ease, transform 240ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(-35deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(35deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.auth-content {
  width: min(390px, 100%);
  margin: auto;
}

.auth-heading {
  margin-bottom: 34px;
}

.auth-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.055em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 21px;
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.auth-switch a,
.consent-row a {
  color: var(--cyan-bright);
  font-weight: 800;
  text-decoration: none;
}

.auth-switch > span {
  margin-right: 0.3em;
}

.auth-switch a:hover,
.consent-row a:hover {
  text-decoration: underline;
}

.register-shell {
  min-height: min(820px, calc(100dvh - clamp(24px, 5vw, 64px)));
}

.register-page {
  padding-block: clamp(12px, 2vw, 28px);
}

.register-page .auth-panel {
  overflow-y: auto;
}

.register-content {
  padding-block: 16px;
}

.register-form {
  gap: 15px;
}

.register-form .input-shell,
.register-form .input-shell input {
  min-height: 50px;
  height: 50px;
}

.register-benefits {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 253, 253, 0.8);
  font-size: 0.9rem;
  font-weight: 650;
}

.register-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.register-benefits .benefit-check {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #052123;
  background: var(--cyan-bright);
  font-size: 0.75rem;
  font-weight: 900;
}

.trial-pill {
  width: fit-content;
  margin: 0 0 17px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(88, 240, 237, 0.26);
  border-radius: 999px;
  color: var(--cyan-bright);
  background: rgba(24, 217, 218, 0.08);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-button {
  min-height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-button:hover {
  border-color: rgba(88, 240, 237, 0.55);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.social-button .facebook-icon {
  color: #74a5ff;
  font-size: 1.05rem;
}

.google-icon {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.auth-divider {
  position: relative;
  margin: 1px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  text-align: center;
}

.auth-divider::before {
  content: "";
  height: 1px;
  position: absolute;
  inset: 50% 0 auto;
  background: var(--line);
}

.auth-divider span {
  padding: 0 11px;
  position: relative;
  background: #0b2025;
}

.password-hint {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--cyan-deep);
}

.consent-row .consent-copy {
  margin-right: 0.28em;
}

.field-group {
  display: grid;
  gap: 9px;
}

.field-group label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-shell {
  min-height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.13) inset, 0 12px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease,
    transform 180ms ease;
}

.input-shell:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}

.input-shell:focus-within {
  border-color: rgba(88, 240, 237, 0.78);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(24, 217, 218, 0.12), 0 14px 34px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.field-icon {
  width: 18px;
  margin-left: 17px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
  text-align: center;
  transition: color 180ms ease;
}

.input-shell:focus-within .field-icon {
  color: var(--cyan-bright);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px 0 12px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
}

.input-shell input::placeholder {
  color: rgba(255, 255, 255, 0.43);
  font-weight: 500;
}

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 1000px rgba(7, 31, 35, 0.94) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.password-toggle {
  width: 42px;
  height: 42px;
  margin-right: 6px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.password-toggle:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.password-toggle:focus-visible,
.login-button:focus-visible {
  outline: 3px solid rgba(88, 240, 237, 0.4);
  outline-offset: 2px;
}

.form-message {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 141, 154, 0.3);
  border-radius: 12px;
  color: #ffc6cc;
  background: rgba(125, 24, 41, 0.22);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-message i {
  margin-top: 3px;
}

.login-button {
  min-height: 57px;
  margin-top: 4px;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  color: #041214;
  background: linear-gradient(125deg, var(--cyan-bright), #19c7ca 58%, #11afb7);
  box-shadow: 0 16px 32px rgba(10, 166, 173, 0.25), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: filter 180ms ease, box-shadow 180ms ease;
}

.login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.46), transparent 68%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.login-button:hover::before {
  transform: translateX(120%);
}

.login-button:hover {
  filter: brightness(1.05);
  box-shadow: 0 19px 38px rgba(10, 166, 173, 0.32), 0 1px 0 rgba(255, 255, 255, 0.54) inset;
}

.login-button:disabled {
  cursor: wait;
  filter: saturate(0.72);
  opacity: 0.82;
}

.login-button.is-success {
  color: #062219;
  background: linear-gradient(125deg, #68e6ab, #39d68c);
}

#loginText,
#registerText,
.loading-content {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#loginText,
#registerText,
.loading-content {
  display: flex;
}

#loginText i,
#registerText i {
  font-size: 0.75rem;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(4, 18, 20, 0.25);
  border-top-color: #041214;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

html[data-theme="light"] .auth-panel {
  color: #0b252b;
  background: radial-gradient(circle at 100% 0, rgba(24, 217, 218, 0.16), transparent 34%),
    rgba(239, 248, 248, 0.92);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

html[data-theme="light"] .theme-toggle {
  color: #12343a;
  border-color: rgba(10, 86, 95, 0.17);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 28px rgba(4, 34, 39, 0.09), 0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

html[data-theme="light"] .theme-toggle:hover {
  color: #087f87;
  border-color: rgba(10, 166, 173, 0.4);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme="light"] .auth-heading h2,
html[data-theme="light"] .mobile-brand-copy > span,
html[data-theme="light"] .mobile-story-title {
  color: #0b252b;
  text-shadow: none;
}

html[data-theme="light"] .auth-heading p,
html[data-theme="light"] .auth-switch,
html[data-theme="light"] .password-hint,
html[data-theme="light"] .consent-row {
  color: rgba(11, 37, 43, 0.64);
}

html[data-theme="light"] .social-button {
  color: #0b252b;
  border-color: rgba(11, 62, 69, 0.16);
  background: rgba(255, 255, 255, 0.44);
}

html[data-theme="light"] .google-icon {
  color: #1f2937;
}

html[data-theme="light"] .auth-divider {
  color: rgba(11, 37, 43, 0.5);
}

html[data-theme="light"] .auth-divider span {
  background: #e9f5f5;
}

html[data-theme="light"] .mobile-brand-copy small {
  color: rgba(11, 37, 43, 0.6);
}

html[data-theme="light"] .mobile-story .story-eyebrow,
html[data-theme="light"] .mobile-story-title span {
  color: #087f87;
  text-shadow: none;
}

html[data-theme="light"] .field-group label {
  color: rgba(11, 37, 43, 0.78);
}

html[data-theme="light"] .input-shell {
  border-color: rgba(11, 62, 69, 0.16);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 32px rgba(4, 34, 39, 0.07);
}

html[data-theme="light"] .input-shell:hover {
  border-color: rgba(11, 62, 69, 0.26);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme="light"] .input-shell:focus-within {
  border-color: rgba(10, 166, 173, 0.68);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .field-icon,
html[data-theme="light"] .password-toggle {
  color: rgba(11, 37, 43, 0.48);
}

html[data-theme="light"] .input-shell:focus-within .field-icon,
html[data-theme="light"] .password-toggle:hover {
  color: #087f87;
}

html[data-theme="light"] .password-toggle:hover {
  background: rgba(8, 127, 135, 0.08);
}

html[data-theme="light"] .input-shell input {
  color: #0b252b;
}

html[data-theme="light"] .input-shell input::placeholder {
  color: rgba(11, 37, 43, 0.42);
}

html[data-theme="light"] .input-shell input:-webkit-autofill,
html[data-theme="light"] .input-shell input:-webkit-autofill:hover,
html[data-theme="light"] .input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0b252b;
  box-shadow: 0 0 0 1000px rgba(241, 250, 250, 0.96) inset;
}

.toastify {
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24) !important;
  font-family: "Manrope", system-ui, sans-serif;
}

.hidden {
  display: none !important;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .login-page {
    padding: 18px;
  }

  .login-video {
    object-position: center top;
    transform-origin: center top;
  }

  .login-shell {
    width: min(540px, 100%);
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .story-panel {
    display: none;
  }

  .auth-panel {
    min-height: min(720px, calc(100dvh - 36px));
    padding: clamp(28px, 7vw, 52px);
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .auth-panel::before {
    display: none;
  }

  .mobile-brand {
    width: 100%;
    margin-bottom: 42px;
    display: flex;
    justify-content: center;
    gap: 11px;
  }

  .mobile-brand-mark {
    width: 38px;
    height: 38px;
    padding: 7px;
    flex: 0 0 auto;
    border: 1px solid rgba(88, 240, 237, 0.22);
    border-radius: 11px;
    background: rgba(3, 13, 17, 0.6);
  }

  .mobile-brand-copy {
    display: grid;
    gap: 2px;
    text-align: left;
  }

  .mobile-brand-copy > span {
    font-size: 1.55rem;
    line-height: 1;
  }

  .mobile-brand-copy small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .mobile-story {
    width: 100%;
    margin: 0 0 44px;
    display: block;
    text-align: center;
  }

  .mobile-story .story-eyebrow {
    margin-bottom: 10px;
    font-size: 0.66rem;
  }

  .mobile-story-title {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.055em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }

  .mobile-story-title span {
    display: block;
    color: var(--cyan-bright);
  }

  .auth-content {
    margin: 0 auto;
    text-align: center;
  }

  .login-form {
    width: 100%;
    text-align: left;
  }

  .register-page .auth-panel {
    min-height: auto;
    text-align: left;
  }

  .register-page .mobile-brand {
    margin-bottom: 22px;
  }

  .register-content {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 0;
    display: block;
  }

  .login-shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-panel {
    min-height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    background: radial-gradient(circle at 100% 0, rgba(88, 240, 237, 0.11), transparent 30%),
      rgba(4, 17, 21, 0.56);
  }

  .theme-toggle {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
  }

  html[data-theme="light"] .auth-panel {
    background: radial-gradient(circle at 100% 0, rgba(24, 217, 218, 0.14), transparent 32%),
      rgba(239, 248, 248, 0.9);
  }

  .mobile-brand {
    margin-bottom: clamp(30px, 6vh, 48px);
  }

  .mobile-story {
    margin-bottom: clamp(36px, 7vh, 58px);
  }

  .auth-heading {
    margin-bottom: 30px;
  }

  .auth-heading h2 {
    font-size: 2.35rem;
  }

  .register-page .auth-panel {
    padding-top: max(74px, env(safe-area-inset-top));
  }

  .social-signup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) and (max-height: 700px) {
  .mobile-brand {
    margin-bottom: 22px;
  }

  .mobile-story {
    margin-bottom: 28px;
  }

  .mobile-story-title {
    font-size: 1.75rem;
  }

  .auth-heading {
    margin-bottom: 22px;
  }

  .login-form {
    gap: 16px;
  }
}

@media (max-height: 720px) and (min-width: 921px) {
  .login-shell {
    min-height: 620px;
  }

  .story-title {
    font-size: clamp(2.8rem, 5.5vw, 4.7rem);
  }

  .auth-heading {
    margin-bottom: 25px;
  }

  .login-form {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
