:root {
  --auth-bg: #eef8f7;
  --auth-surface: rgba(255, 255, 255, 0.95);
  --auth-surface-soft: #f7fbfb;
  --auth-border: rgba(10, 92, 105, 0.12);
  --auth-border-strong: rgba(10, 92, 105, 0.18);
  --auth-ink: #12384a;
  --auth-ink-soft: #5f7f8d;
  --auth-teal-deep: #0c6f7d;
  --auth-teal: #22a7b3;
  --auth-mint: #8fe3d7;
  --auth-coral: #ff8757;
  --auth-coral-soft: #ffe5d8;
  --auth-shadow: 0 28px 80px rgba(10, 39, 48, 0.14);
  --auth-shadow-soft: 0 18px 48px rgba(10, 39, 48, 0.1);
  --auth-radius-xl: 38px;
  --auth-radius-lg: 32px;
  --auth-radius-md: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body.auth-body {
  margin: 0;
  min-height: 100svh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at top left, rgba(143, 227, 215, 0.48), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 135, 87, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fcfc 0%, var(--auth-bg) 48%, #edf7f7 100%);
}

body.auth-body::before,
body.auth-body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

body.auth-body::before {
  top: -12rem;
  left: -10rem;
  background: rgba(110, 224, 210, 0.22);
}

body.auth-body::after {
  right: -8rem;
  bottom: -10rem;
  background: rgba(255, 135, 87, 0.1);
}

a,
button {
  color: inherit;
}

button,
input {
  font: inherit;
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: clamp(16px, 3vw, 34px);
}

.auth-stage {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.container[hidden] {
  display: none !important;
}

.auth-login-grid {
  display: none;
  gap: 28px;
  align-items: stretch;
  width: min(100%, 1160px);
  margin: 0 auto;
}

body[data-auth-screen="login"] .auth-login-grid {
  display: block;
}

.auth-login-card,
.auth-flow-card,
.auth-side-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--auth-surface);
  box-shadow: var(--auth-shadow);
}

.auth-login-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  grid-template-rows: auto auto;
  border-radius: var(--auth-radius-xl);
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
}

.auth-login-visual {
  position: relative;
  min-height: 100%;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  background: linear-gradient(155deg, #0d7181 0%, #1aa3b2 58%, #90e8d8 100%);
  color: #fff;
}

.auth-login-visual::before,
.auth-login-visual::after,
.auth-side-card-art::before,
.auth-side-card-art::after,
.auth-panel-banner::before,
.auth-panel-banner::after,
.auth-illustration::before,
.auth-illustration::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-login-visual::before,
.auth-panel-banner::before {
  inset: auto -18% -12% -8%;
  height: 42%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, rgba(194, 244, 241, 0.54), rgba(194, 244, 241, 0.18));
}

.auth-login-visual::after,
.auth-panel-banner::after {
  right: -5rem;
  top: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 133, 0.5) 0%, rgba(255, 190, 133, 0) 70%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-brand img {
  width: auto;
  height: 52px;
  max-width: min(100%, 204px);
}

.auth-visual-chip,
.auth-card-chip,
.auth-illustration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-visual-chip {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.auth-login-copy {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 6vw, 56px);
  max-width: 26rem;
}

.auth-login-copy h1,
.auth-panel-banner h1 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.auth-login-copy h1 {
  font-size: clamp(3.35rem, 5vw, 5.35rem);
}

.auth-login-copy p,
.auth-panel-banner p {
  margin: 18px 0 0;
  line-height: 1.72;
  font-size: 1.04rem;
}

.auth-login-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.auth-mascot-wrap {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 48%;
  pointer-events: none;
}

.auth-mascot-wrap img {
  display: block;
  width: min(72%, 420px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(8, 40, 49, 0.22));
}

.auth-login-form {
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
}

.auth-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.auth-heading-row h2,
.auth-panel-body h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-heading-row p,
.auth-panel-body p {
  margin: 8px 0 0;
  color: var(--auth-ink-soft);
  line-height: 1.65;
}

.auth-inline-switch {
  margin: 0;
  font-size: 0.98rem;
  color: var(--auth-ink-soft);
  text-align: right;
}

.auth-inline-switch a,
.auth-panel-toplink a,
.form-footer a,
.auth-text-link {
  font-weight: 800;
  color: var(--auth-teal-deep);
  text-decoration: none;
}

.auth-inline-switch a:hover,
.auth-panel-toplink a:hover,
.form-footer a:hover,
.auth-text-link:hover {
  text-decoration: underline;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-grid {
  display: grid;
  gap: 14px;
}

.auth-input {
  position: relative;
}

.auth-input input,
.twofa-input {
  width: 100%;
  height: 68px;
  padding: 0 56px 0 56px;
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  background: var(--auth-surface-soft);
  color: var(--auth-ink);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-input input::placeholder,
.twofa-input::placeholder {
  color: #84a0aa;
}

.auth-input input:focus,
.twofa-input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(12, 111, 125, 0.32);
  box-shadow: 0 0 0 4px rgba(34, 167, 179, 0.14);
}

.twofa-input {
  height: 60px;
  padding-left: 18px;
}

.auth-input i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #7b9aa3;
}

.auth-input .input-icon {
  left: 20px;
}

.auth-input .toggle-password {
  right: 20px;
  cursor: pointer;
}

.auth-code-input input {
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

button.btn,
.auth-side-card .btn {
  width: 100%;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #f49a48 0%, #ff7d61 36%, #138e99 100%);
  box-shadow: 0 16px 30px rgba(244, 146, 75, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

button.btn:hover,
.auth-side-card .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(244, 146, 75, 0.26);
}

button.btn:disabled {
  color: #89a8af;
  background: #dfeff1;
  box-shadow: none;
  cursor: not-allowed;
}

button.btn.btn-secondary {
  background: #fff;
  color: var(--auth-teal-deep);
  border: 1px solid var(--auth-border-strong);
  box-shadow: none;
}

button.btn.btn-secondary:hover {
  transform: none;
  box-shadow: none;
  background: #f8fcfc;
}

.message {
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.message.success {
  display: block;
  background: rgba(34, 167, 179, 0.12);
  border: 1px solid rgba(34, 167, 179, 0.22);
  color: #0d6874;
}

.message.error {
  display: block;
  background: rgba(255, 135, 87, 0.12);
  border: 1px solid rgba(255, 135, 87, 0.24);
  color: #a44e2b;
}

.form-footer,
.auth-panel-links {
  display: grid;
  gap: 10px;
  text-align: center;
  color: var(--auth-ink-soft);
}

.form-footer {
  margin-top: 18px;
}

.auth-login-support {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 92, 105, 0.1);
}

.auth-login-support-title {
  margin: 0 0 14px;
  color: var(--auth-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-login-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-sheet-action {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--auth-border);
  background: linear-gradient(180deg, #fbfefe 0%, #edf7f7 100%);
  color: var(--auth-ink);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.auth-sheet-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 39, 48, 0.08);
  border-color: rgba(12, 111, 125, 0.22);
  background: #fff;
}

.auth-sheet-action-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 800;
}

.auth-sheet-action-label i {
  color: var(--auth-teal-deep);
}

.auth-sheet-action > i:last-child {
  color: #5e7a83;
}

.auth-panel-links {
  margin-top: 20px;
}

#captcha-container {
  display: grid;
  gap: 12px;
}

#slider-track {
  position: relative;
  min-height: 60px;
  border-radius: 20px;
  border: 1px solid var(--auth-border);
  background: linear-gradient(180deg, #f8fcfc 0%, #edf7f7 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#slider-track.verified {
  border-color: rgba(34, 167, 179, 0.3);
  background: rgba(34, 167, 179, 0.12);
}

#slider-text {
  position: relative;
  z-index: 1;
  color: #2a6872;
  font-weight: 800;
  transition: opacity 180ms ease;
}

#puzzle-target,
#puzzle-piece {
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 72px;
  border-radius: 16px;
}

#puzzle-target {
  background: rgba(143, 227, 215, 0.44);
}

#puzzle-piece {
  left: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #f49a48 0%, #38c5bc 100%);
  box-shadow: 0 12px 22px rgba(12, 53, 63, 0.16);
  transition: background 180ms ease, box-shadow 180ms ease, left 250ms ease;
}

#puzzle-piece.verified {
  background: linear-gradient(135deg, #118693 0%, #4fcfc4 100%);
}

.captcha-actions {
  display: flex;
  justify-content: flex-end;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #58747f;
  font-weight: 800;
}

.auth-feature-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(180deg, #f8fcfc 0%, #edf7f7 100%);
  border-top: 1px solid rgba(10, 92, 105, 0.1);
}

.auth-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 28px;
}

.auth-feature + .auth-feature {
  border-left: 1px solid rgba(10, 92, 105, 0.1);
}

.auth-feature-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 167, 179, 0.1);
  color: var(--auth-teal);
  font-size: 1.15rem;
}

.auth-feature h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.auth-feature p {
  margin: 10px 0 0;
  color: var(--auth-ink-soft);
  line-height: 1.65;
}

.auth-side-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(190px, 0.92fr);
  min-height: 360px;
  border-radius: var(--auth-radius-lg);
  overflow: hidden;
}

.auth-side-card-copy {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.auth-card-chip {
  width: fit-content;
  color: var(--auth-teal-deep);
  background: rgba(34, 167, 179, 0.08);
  border: 1px solid rgba(34, 167, 179, 0.12);
}

.auth-side-card-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-side-card-copy p {
  margin: 12px 0 0;
  color: var(--auth-ink-soft);
  line-height: 1.72;
}

.auth-side-card-actions {
  display: grid;
  gap: 10px;
}

.auth-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-side-card-art,
.auth-illustration {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f3fbfb 0%, #ddf3f4 100%);
}

.auth-side-card-art::before,
.auth-illustration::before {
  inset: auto -10% -10% -6%;
  height: 48%;
  border-radius: 48% 48% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, rgba(180, 235, 232, 0.9), rgba(210, 244, 241, 0.36));
}

.auth-side-card-art::after,
.auth-illustration::after {
  top: 38px;
  right: 28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 127, 0.82) 0%, rgba(255, 196, 127, 0) 34%);
}

.auth-side-card-art img,
.auth-illustration img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.auth-flow-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  border-radius: var(--auth-radius-xl);
  overflow: hidden;
  min-height: 680px;
}

.auth-flow-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-panel-banner {
  position: relative;
  padding: clamp(26px, 3vw, 34px);
  overflow: hidden;
  background: linear-gradient(155deg, #0d7181 0%, #22a7b3 56%, #9ae6da 100%);
  color: #fff;
}

.auth-panel-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.6rem;
}

.auth-panel-banner h1 {
  margin-top: 24px;
  font-size: clamp(2.8rem, 4.5vw, 4.85rem);
}

.auth-panel-banner p {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.98);
}

.auth-panel-toplink {
  margin: 0 0 24px;
  text-align: right;
  color: var(--auth-ink-soft);
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--auth-ink-soft);
  line-height: 1.55;
}

.auth-check-row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--auth-teal-deep);
}

.auth-check-row a {
  color: var(--auth-teal-deep);
  font-weight: 800;
  text-decoration: none;
}

.auth-check-row a:hover {
  text-decoration: underline;
}

.auth-illustration {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.auth-illustration-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  color: var(--auth-teal-deep);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(10, 92, 105, 0.1);
}

.auth-illustration-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 92, 105, 0.1);
  box-shadow: var(--auth-shadow-soft);
}

.auth-illustration-note strong {
  display: block;
  font-size: 1rem;
}

.auth-illustration-note p {
  margin: 8px 0 0;
  color: var(--auth-ink-soft);
  line-height: 1.55;
}

#register-container .auth-panel-banner {
  background: linear-gradient(155deg, #0d7181 0%, #1ca3b2 56%, #93e7dc 100%);
}

#forgot-container .auth-panel-banner,
#resend-container .auth-panel-banner {
  background: linear-gradient(155deg, #0f7886 0%, #39b2b7 58%, #bdeedb 100%);
}

#verify-container .auth-panel-banner {
  background: linear-gradient(155deg, #0f7a87 0%, #42bdbc 58%, #cff5eb 100%);
}

#reset-container .auth-panel-banner {
  background: linear-gradient(155deg, #0a6774 0%, #2596a5 50%, #f59c61 100%);
}

#location-container .auth-panel-banner {
  background: linear-gradient(155deg, #0b6c79 0%, #1f96a5 56%, #83ddd3 100%);
}

#location-container .auth-panel-banner::after {
  background: radial-gradient(circle, rgba(255, 199, 139, 0.54) 0%, rgba(255, 199, 139, 0) 65%);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.city-option {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.city-option:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(12, 111, 125, 0.22);
  box-shadow: 0 12px 24px rgba(10, 39, 48, 0.08);
}

.city-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.city-option span {
  display: block;
  font-weight: 800;
  color: var(--auth-ink);
}

.city-option small {
  display: block;
  margin-top: 6px;
  color: var(--auth-ink-soft);
}

.city-option:has(input:checked) {
  border-color: rgba(12, 111, 125, 0.28);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 167, 179, 0.12) inset;
}

.city-option.is-default::after {
  content: "Default";
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--auth-coral-soft);
  color: #ac572c;
  border: 1px solid rgba(255, 135, 87, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
}

#twofa-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 32, 39, 0.58);
}

.twofa-card {
  width: min(92vw, 440px);
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--auth-shadow);
}

.twofa-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.twofa-card p {
  margin: 10px 0 0;
  color: var(--auth-ink-soft);
  line-height: 1.65;
}

.twofa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.twofa-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #45636e;
}

.twofa-actions {
  margin-top: 14px;
}

.btn-outline {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--auth-border-strong);
  background: var(--auth-surface-soft);
  color: var(--auth-ink);
  font-weight: 700;
  cursor: pointer;
}

.twofa-error {
  display: none;
  margin-top: 12px;
  color: #a44e2b;
  font-weight: 700;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  color: #6d858f;
  font-size: 0.92rem;
}

.auth-footer a {
  color: #4f6e77;
  font-weight: 800;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

body.platform-ios #slider-track {
  min-height: 64px;
}

body.platform-ios button.btn {
  min-height: 64px;
}

@media (max-width: 1260px) {
  body[data-auth-screen="login"] .auth-login-grid {
    display: block;
  }
}

@media (max-width: 980px) {
  .auth-login-card {
    grid-template-columns: 1fr;
  }

  .auth-login-visual {
    min-height: 430px;
  }

  .auth-feature-rail {
    grid-template-columns: 1fr;
  }

  .auth-feature + .auth-feature {
    border-left: none;
    border-top: 1px solid rgba(10, 92, 105, 0.1);
  }

  .auth-flow-card {
    grid-template-columns: 1fr;
  }

  .auth-illustration {
    min-height: 300px;
  }
}

@media (max-width: 820px) {
  .auth-login-support-grid {
    grid-template-columns: 1fr;
  }

  .auth-heading-row,
  .auth-panel-toplink {
    text-align: left;
  }

  .auth-heading-row {
    flex-direction: column;
  }

  .auth-inline-switch {
    text-align: left;
  }

  .twofa-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 10px;
  }

  .auth-login-card,
  .auth-flow-card,
  .auth-side-card,
  .twofa-card {
    border-radius: 28px;
  }

  .auth-login-visual,
  .auth-login-form,
  .auth-side-card-copy,
  .auth-panel-banner,
  .auth-panel-body {
    padding: 22px 18px 24px;
  }

  .auth-login-copy h1,
  .auth-panel-banner h1,
  .auth-heading-row h2,
  .auth-panel-body h2,
  .auth-side-card-copy h2 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .auth-login-visual {
    min-height: 360px;
  }

  .auth-brand img {
    height: 44px;
  }

  .auth-input input,
  .twofa-input {
    height: 60px;
  }

  #slider-track {
    min-height: 58px;
  }

  #puzzle-target,
  #puzzle-piece {
    width: 62px;
  }
}

@media (max-width: 520px) {
  .auth-illustration {
    display: none;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }
}
