/* =========================================================
   Shared full-page auth — viewport-fit, no page scroll
   Palette: white · purple · dark pink
   ========================================================= */

:root {
  --io-purple: #884BDF;
  --io-purple-bright: #A865E1;
  --io-purple-deep: #6B35C4;
  --io-purple-ink: #3D1F7A;
  --io-pink: #C2185B;
  --io-pink-deep: #AD1457;
  --io-pink-soft: #E91E63;
  --io-ink: #1C1230;
  --io-muted: #6B6280;
  --io-line: rgba(136, 75, 223, 0.14);
  --io-surface: #FFFFFF;
  --io-surface-soft: #FBF7FF;
  --io-font-display: 'Outfit', 'Segoe UI', sans-serif;
  --io-font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --io-auth-gap: clamp(0.35rem, 1.1vh, 0.85rem);
  --io-auth-field-h: clamp(40px, 5.2vh, 46px);
  --io-auth-btn-h: clamp(42px, 5.5vh, 48px);
}

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

html {
  height: 100%;
  overflow: hidden;
}

body.io-auth-page {
  margin: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--io-font-body);
  color: var(--io-ink);
  background: var(--io-surface);
  -webkit-font-smoothing: antialiased;
}

body.io-auth-page a {
  color: var(--io-pink);
  text-decoration: none;
}

body.io-auth-page a:hover {
  color: var(--io-pink-deep);
}

.io-auth-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 18, 48, 0.35);
  backdrop-filter: blur(4px);
}

.io-auth-loader-spin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: io-auth-spin 0.7s linear infinite;
}

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

.io-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

/* ---------- Left visual ---------- */
.io-auth-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3.2vh, 2.25rem) clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(233, 30, 99, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(107, 53, 196, 0.45), transparent 50%),
    linear-gradient(165deg, #24105A 0%, #4A1F9E 38%, #7B3FCF 72%, #A12A6E 115%);
}

.io-auth-visual-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
  pointer-events: none;
  opacity: 0.45;
}

.io-auth-visual-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(420px, 70%);
  height: min(420px, 55vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(168, 101, 225, 0.12) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.io-auth-visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
  animation: io-auth-float 11s ease-in-out infinite;
}

.io-auth-visual-orb--a {
  width: min(260px, 34vh);
  height: min(260px, 34vh);
  top: 4%;
  right: -8%;
  background: rgba(255, 255, 255, 0.12);
}

.io-auth-visual-orb--b {
  width: min(220px, 28vh);
  height: min(220px, 28vh);
  bottom: 4%;
  left: -10%;
  background: rgba(233, 30, 99, 0.26);
  animation-delay: -4s;
}

@keyframes io-auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.io-auth-visual-top {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.io-auth-brand {
  display: inline-flex;
  width: fit-content;
}

.io-auth-brand img {
  display: block;
  height: clamp(44px, 6.2vh, 56px);
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

/* Highlighted product tagline */
.io-auth-visual-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.48rem 0.95rem 0.48rem 0.7rem;
  border-radius: 999px;
  font-size: clamp(0.72rem, 1.45vh, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.22) 0%, rgba(233, 30, 99, 0.35) 55%, rgba(136, 75, 223, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 24px rgba(20, 8, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.io-auth-visual-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5FA2;
  box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.28);
  flex-shrink: 0;
  animation: io-auth-pulse 2.2s ease-in-out infinite;
}

@keyframes io-auth-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 95, 162, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(255, 95, 162, 0.12); }
}

/* Clean vertical stack: phone hero → copy */
.io-auth-visual-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vh, 1.5rem);
  margin: clamp(0.35rem, 1.2vh, 0.85rem) 0;
  text-align: center;
}

.io-auth-visual-copy {
  max-width: 28rem;
  margin: 0 auto;
}

.io-auth-visual-copy h1 {
  margin: 0;
  font-family: var(--io-font-display);
  font-size: clamp(1.65rem, 3.4vh + 0.3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.io-auth-visual-copy h1 span {
  display: inline;
  background: linear-gradient(90deg, #FFFFFF 10%, #F8BBD0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.io-auth-visual-sub {
  margin: 0.65rem auto 0;
  font-size: clamp(0.86rem, 1.7vh, 0.98rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 22rem;
}

/* iOS App Store marketing */
.io-auth-ios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(0.85rem, 2vh, 1.25rem);
}

.io-auth-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem 0.55rem 0.85rem;
  border-radius: 12px;
  color: #fff !important;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(8, 4, 24, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.io-auth-appstore:hover {
  color: #fff !important;
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(8, 4, 24, 0.42);
}

.io-auth-appstore-apple {
  flex-shrink: 0;
}

.io-auth-appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}

.io-auth-appstore-text small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.io-auth-appstore-text strong {
  font-family: var(--io-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.io-auth-ios-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.io-auth-ios-stars {
  display: inline-flex;
  gap: 0.12rem;
}

.io-auth-ios-stars svg {
  width: 12px;
  height: 12px;
  fill: #FFD56A;
}

.io-auth-ios-meta p {
  margin: 0;
  font-size: clamp(0.72rem, 1.4vh, 0.8rem);
  color: rgba(255, 255, 255, 0.72);
}

.io-auth-ios-meta strong {
  color: #fff;
  font-weight: 700;
}

.io-auth-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-family: var(--io-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1C1230;
  background: linear-gradient(135deg, #FFE8A3 0%, #FFD56A 45%, #F5C042 100%);
  box-shadow:
    0 10px 24px rgba(20, 8, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.io-auth-rank::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6d0, #C9A227 70%);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
  flex-shrink: 0;
}

.io-auth-device-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: min(54vh, 500px);
  padding: 0.5rem 1.25rem;
}

.io-auth-device-halo {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(280px, 72%);
  height: min(420px, 92%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(168, 101, 225, 0.14) 42%, transparent 72%);
  pointer-events: none;
}

.io-auth-device {
  --io-device-radius: 36px;
  --io-device-pad: 9px;
  position: relative;
  z-index: 1;
  height: min(52vh, 480px);
  width: auto;
  max-width: min(236px, 42vw);
  aspect-ratio: 9 / 19.5;
  border-radius: var(--io-device-radius);
  padding: var(--io-device-pad);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(165deg, #3a2a55 0%, #1a122c 55%, #0e0a18 100%);
  box-shadow:
    0 36px 70px rgba(8, 2, 24, 0.5),
    0 12px 28px rgba(8, 2, 24, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  animation: io-auth-device-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  isolation: isolate;
}

@keyframes io-auth-device-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.io-auth-device-side {
  position: absolute;
  background: linear-gradient(90deg, #2a2038, #16101f);
  border-radius: 2px;
  z-index: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.io-auth-device-side--silent {
  left: -2px;
  top: 18%;
  width: 3px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}

.io-auth-device-side--vol-up {
  left: -2px;
  top: 28%;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
}

.io-auth-device-side--vol-down {
  left: -2px;
  top: 40%;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
}

.io-auth-device-side--power {
  right: -2px;
  top: 30%;
  width: 3px;
  height: 52px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #16101f, #2a2038);
}

.io-auth-device-island {
  position: absolute;
  top: calc(var(--io-device-pad) + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: clamp(16px, 4.2%, 20px);
  background: #0a0612;
  border-radius: 999px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.io-auth-device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--io-device-radius) - var(--io-device-pad));
  overflow: hidden;
  background: #0B1220;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.io-auth-device-screen picture,
.io-auth-device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.io-auth-device-screen img {
  object-fit: cover;
  object-position: top center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.io-auth-device-home {
  position: absolute;
  left: 50%;
  bottom: calc(var(--io-device-pad) + 5px);
  transform: translateX(-50%);
  width: 34%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  z-index: 3;
  pointer-events: none;
}

.io-auth-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--io-ink);
  box-shadow:
    0 18px 40px rgba(20, 8, 50, 0.28),
    0 4px 12px rgba(61, 31, 122, 0.12);
  font-family: var(--io-font-body);
  z-index: 4;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  white-space: nowrap;
  animation:
    io-auth-chip 0.85s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both,
    io-auth-float-bob 5.5s 1.2s ease-in-out infinite;
}

.io-auth-float--sent {
  top: 8%;
  right: max(0.25rem, calc(50% - 158px));
  left: auto;
}

.io-auth-float--doc {
  left: max(0.25rem, calc(50% - 158px));
  right: auto;
  bottom: 12%;
  animation-delay: 0.55s, 2s;
}

.io-auth-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex-shrink: 0;
}

.io-auth-float-icon--ok {
  color: #fff;
  background: linear-gradient(145deg, #2DD98A 0%, #1DBF73 55%, #12A862 100%);
  box-shadow:
    0 6px 14px rgba(29, 191, 115, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.io-auth-float-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.15;
  padding-right: 0.15rem;
}

.io-auth-float-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--io-ink);
}

.io-auth-float-text small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--io-muted);
}

.io-auth-float-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--io-purple-bright), var(--io-purple-deep));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(136, 75, 223, 0.32);
}

@keyframes io-auth-chip {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes io-auth-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.io-auth-visual-foot {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  align-self: center;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: clamp(0.7rem, 1.4vh, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.io-auth-visual-foot-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

/* ---------- Right form panel ---------- */
.io-auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1rem, 2.5vh, 1.75rem) clamp(1.15rem, 3vw, 2.25rem);
  background:
    radial-gradient(ellipse 55% 35% at 100% 0%, rgba(194, 24, 91, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(136, 75, 223, 0.08), transparent 50%),
    var(--io-surface);
}

.io-auth-mobile-brand {
  display: none;
}

.io-auth-back {
  position: absolute;
  top: clamp(0.75rem, 1.8vh, 1.15rem);
  right: clamp(0.85rem, 2vw, 1.35rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: var(--io-muted) !important;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--io-surface-soft);
  border: 1px solid var(--io-line);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.io-auth-back:hover {
  color: var(--io-purple-ink) !important;
  border-color: rgba(194, 24, 91, 0.35);
}

.io-auth-panel-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  min-height: 0;
}

.io-auth-header {
  margin-bottom: var(--io-auth-gap);
}

.io-auth-kicker {
  display: inline-flex;
  margin: 0 0 clamp(0.35rem, 1vh, 0.6rem);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(136, 75, 223, 0.12), rgba(194, 24, 91, 0.1));
  color: var(--io-pink-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.io-auth-title,
.io-auth-header h2 {
  margin: 0;
  font-family: var(--io-font-display);
  font-size: clamp(1.45rem, 2.8vh + 0.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--io-ink);
  line-height: 1.15;
}

.io-auth-sub {
  margin: clamp(0.3rem, 0.9vh, 0.5rem) 0 0;
  color: var(--io-muted);
  font-size: clamp(0.8rem, 1.7vh, 0.9rem);
  line-height: 1.4;
}

.io-auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--io-auth-gap);
}

.io-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.io-auth-field > label:not(.error) {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--io-ink);
}

.io-auth-field input,
.io-auth-page .input-field input {
  width: 100%;
  height: var(--io-auth-field-h);
  padding: 0 0.85rem;
  border: 1.5px solid rgba(136, 75, 223, 0.18);
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--io-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none !important;
}

.io-auth-field input::placeholder {
  color: #9A92AD;
}

.io-auth-field input:hover {
  border-color: rgba(194, 24, 91, 0.35);
}

.io-auth-field input:focus {
  border-color: var(--io-purple);
  box-shadow: 0 0 0 3px rgba(136, 75, 223, 0.14) !important;
}

.io-auth-field input.error,
.io-auth-page .input-field input.error {
  border-color: var(--io-pink) !important;
}

.io-auth-page label.error {
  color: var(--io-pink);
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.1rem;
  line-height: 1.2;
}

.io-auth-submit,
.io-auth-page .login_button,
.io-auth-page .forgot_button {
  width: 100%;
  height: var(--io-auth-btn-h);
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--io-purple-deep) 0%, var(--io-purple) 48%, var(--io-pink) 120%);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(136, 75, 223, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.io-auth-submit:hover,
.io-auth-page .login_button:hover,
.io-auth-page .forgot_button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(173, 20, 87, 0.28);
}

.io-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--io-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.io-auth-divider::before,
.io-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--io-line);
}

.io-auth-google,
.io-auth-page .google_login_icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: var(--io-auth-btn-h);
  border-radius: 11px;
  border: 1.5px solid rgba(136, 75, 223, 0.16);
  background: #fff !important;
  color: var(--io-ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.io-auth-google:hover,
.io-auth-page .google_login_icon:hover {
  border-color: rgba(194, 24, 91, 0.4);
  background: var(--io-surface-soft) !important;
}

.io-auth-google svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Footer links — consistent row alignment */
.io-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--io-muted);
  line-height: 1.35;
}

.io-auth-footer a {
  font-weight: 650;
  color: var(--io-pink);
  white-space: nowrap;
}

.io-auth-footer a:hover {
  color: var(--io-pink-deep);
}

.io-auth-footer p {
  margin: 0;
  width: 100%;
  text-align: center;
}

.io-auth-footer.already_acc {
  justify-content: center;
}

.io-auth-footer.forgot_link span:first-child {
  flex: 1;
  min-width: 0;
}

.io-auth-footer .forgot_pass_link {
  margin-left: auto;
  text-align: right;
}

.io-auth-tab[hidden] {
  display: none !important;
}

.io-auth-notify {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(28, 18, 48, 0.55);
  backdrop-filter: blur(6px);
}

.io-auth-notify.is-open {
  display: flex;
}

.io-auth-notify-card {
  width: min(420px, 100%);
  padding: 1.35rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(61, 31, 122, 0.25);
}

.io-auth-notify-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--io-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--io-ink);
}

.io-auth-notify-body {
  color: var(--io-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.io-auth-notify-close {
  margin-top: 0.15rem;
}

.io-auth-page .row,
.io-auth-page .col {
  margin: 0;
  padding: 0;
  float: none;
  width: 100%;
}

.io-auth-page .google_login {
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

/* Short desktop heights */
@media (max-height: 820px) {
  .io-auth-visual-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .io-auth-ios-meta {
    display: none;
  }

  .io-auth-float--doc {
    display: none;
  }

  .io-auth-device-stage {
    max-height: min(46vh, 380px);
  }

  .io-auth-device {
    --io-device-radius: 32px;
    --io-device-pad: 8px;
    height: min(44vh, 360px);
    max-width: min(200px, 40vw);
  }
}

@media (max-height: 700px) {
  .io-auth-visual-copy h1 {
    font-size: 1.4rem;
  }

  .io-auth-visual-foot,
  .io-auth-ios {
    display: none;
  }

  .io-auth-float {
    display: none;
  }

  .io-auth-device-stage {
    max-height: min(40vh, 320px);
  }

  .io-auth-device {
    --io-device-radius: 28px;
    --io-device-pad: 7px;
    height: min(38vh, 300px);
    max-width: min(176px, 36vw);
  }

  .io-auth-rank {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  .io-auth-field > label:not(.error) {
    display: none;
  }
}

/* ---------- Tablet / mobile: form only, no banner ---------- */
@media (max-width: 900px) {
  .io-auth-shell {
    grid-template-columns: 1fr;
  }

  .io-auth-visual {
    display: none !important;
  }

  .io-auth-panel {
    justify-content: flex-start;
    padding-top: clamp(3.25rem, 8vh, 4.5rem);
    padding-bottom: clamp(1rem, 3vh, 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .io-auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(0.85rem, 2vh, 1.25rem);
  }

  .io-auth-mobile-brand img {
    height: 32px;
    width: auto;
  }

  .io-auth-panel-inner {
    max-width: 400px;
  }

  .io-auth-back {
    top: 0.85rem;
    right: 0.85rem;
  }

  .io-auth-footer {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }
}

/* Very small phones — still prefer no scroll when possible */
@media (max-width: 900px) and (max-height: 720px) {
  .io-auth-panel {
    justify-content: center;
    padding-top: 3rem;
  }

  .io-auth-kicker {
    margin-bottom: 0.35rem;
  }

  .io-auth-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .io-auth-device,
  .io-auth-float,
  .io-auth-visual-orb,
  .io-auth-loader-spin,
  .io-auth-visual-kicker-dot {
    animation: none !important;
  }
}
