/* Entrada WifiCord: vidro só na marca; formulário com contraste e respiro. */
#auth-screen {
  min-height: 100dvh;
  padding: clamp(14px, 3vw, 40px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 800px 620px at 4% 4%, #11414d70, transparent 64%),
    radial-gradient(ellipse 620px 520px at 95% 100%, #0a637038, transparent 72%),
    #060d16;
}
#auth-screen .auth-shell {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 450px);
  width: min(100%, 1080px);
  max-width: 1080px;
  min-height: min(650px, calc(100dvh - 48px));
  border: 1px solid #b9f9ff2c;
  border-radius: 26px;
  background: linear-gradient(135deg, #12303ab8, #0b1724c9 52%, #0c202bb8);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  backdrop-filter: blur(30px) saturate(165%);
  box-shadow:
    0 34px 90px #0009,
    0 1px 0 #f2ffff35 inset,
    0 -1px 0 #8cebe91c inset,
    0 0 46px #3ad9d312;
  animation: authShellIn .5s cubic-bezier(.16,.9,.3,1) both;
}
#auth-screen .auth-shell::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(128deg, #f4ffff15 0%, #c7ffff06 18%, transparent 40%, #52e9e90a 78%, transparent 100%),
    radial-gradient(ellipse at 18% 0%, #80f4ed17, transparent 45%);
}
#auth-screen .auth-shell::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 8%;
  width: 42%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #f0ffffa6 35%, #a4fff173 70%, transparent);
  box-shadow: 0 0 12px #8ffcf044;
}
#auth-screen .auth-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-width: 0;
  padding: clamp(28px, 3.8vw, 48px);
  overflow: hidden;
  border-right: 1px solid #d4ffff20;
  background:
    radial-gradient(circle at 51% 41%, #19c0bf1c, transparent 38%),
    linear-gradient(145deg, #15364045 0%, #0b1d2b20 52%, #0a18253b 100%);
}
.auth-showcase-top, .auth-showcase-copy, .auth-showcase-foot { position: relative; z-index: 1; }
.auth-showcase-status, .auth-showcase-eyebrow, .auth-showcase-foot {
  color: #a0cbd0;
  font: 700 10px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: .15em;
}
.auth-showcase-status { display: inline-flex; align-items: center; gap: 10px; }
.auth-showcase-status i { width: 7px; height: 7px; border-radius: 50%; background: #62e7da; box-shadow: 0 0 13px #4ae3d7; }
#auth-screen .auth-showcase-art {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: clamp(205px, 30vh, 260px);
  margin: 5px 0 0;
  flex: 0 0 auto;
  isolation: isolate;
}
.auth-liquid-aura {
  position: absolute;
  width: min(72%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #56f4e83b, #20b7c012 48%, transparent 72%);
  filter: blur(22px);
}
.auth-liquid-line {
  position: absolute;
  width: min(81%, 330px);
  aspect-ratio: 1;
  border: 1px solid #a0f8ed2b;
  border-radius: 50%;
  transform: rotate(-19deg) scaleY(.59);
  box-shadow: 0 0 24px #21d8ca12;
}
.auth-liquid-lens {
  --shift-x: 0px;
  --shift-y: 0px;
  --turn: -8deg;
  --light-x: 28%;
  --light-y: 20%;
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(158px, 19vw, 205px);
  aspect-ratio: 1;
  border: 1px solid #dcffff8a;
  border-radius: 46% 54% 55% 45% / 44% 47% 53% 56%;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), #f5ffff9c, #d0ffff12 28%, transparent 52%),
    linear-gradient(140deg, #d8ffff48 2%, #61efe51e 40%, #09617b5c 75%, #b1f7ff24);
  box-shadow:
    0 26px 60px #001420ad,
    0 0 34px #70f7e72b,
    inset 5px 6px 12px #efffff85,
    inset -15px -18px 26px #0645579c,
    inset 0 0 0 2px #daffff14;
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  transform: translate3d(var(--shift-x), var(--shift-y), 0) rotate(var(--turn));
  transition: transform .48s cubic-bezier(.18,.85,.22,1), box-shadow .3s ease;
  will-change: transform;
}
.auth-liquid-lens::before {
  content: '';
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid #b6ffff25;
  box-shadow: 0 0 25px #bdffff1c inset;
}
.auth-liquid-lens::after {
  content: '';
  position: absolute;
  inset: 8% 13% auto 18%;
  height: 28%;
  border-top: 2px solid #efffffd1;
  border-radius: 50%;
  filter: blur(2px);
  transform: rotate(-17deg);
}
.auth-liquid-sheen {
  position: absolute;
  left: 19%;
  top: 20%;
  width: 25%;
  height: 47%;
  border-radius: 50%;
  background: linear-gradient(110deg, #f4ffffa3, #b9ffff14);
  filter: blur(6px);
  transform: rotate(28deg);
  opacity: .72;
}
.auth-liquid-lens.is-pressed { transform: translate3d(var(--shift-x), var(--shift-y), 0) rotate(var(--turn)) scale(.96); }
.auth-showcase-eyebrow { margin: 0 0 10px; color: #70e0d6; }
#auth-screen .auth-showcase-title {
  max-width: 13ch;
  margin: 0;
  color: #f1faf7;
  font: 650 clamp(30px, 3.6vw, 43px)/1.08 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -.055em;
}
.auth-showcase-title em { color: #8ae9da; font-style: normal; }
#auth-screen .auth-showcase-sub {
  max-width: 36ch;
  margin: 16px 0 0;
  color: #a4bbc0;
  font: 400 14px/1.55 Inter, sans-serif;
}
.auth-showcase-foot { display: flex; align-items: center; gap: 11px; white-space: nowrap; opacity: .8; }
.auth-showcase-foot span { color: #58ded0; }

#auth-screen .auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 3.3vw, 42px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(155deg, #17303bc4, #0c1926c9 70%) !important;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: none;
  justify-content: safe center;
}
#auth-screen .auth-brand { margin: 0 0 24px; text-align: center; }
#auth-screen .auth-glass-mark {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  filter: drop-shadow(0 0 18px #34ecd03c);
}
#auth-screen .auth-glass-mark::after { display: none; }
#auth-screen .auth-glass-mark img,
#auth-screen .auth-glass-mark canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
#auth-screen .auth-glass-mark img { object-fit: contain; opacity: 0; transition: opacity .2s ease; }
#auth-screen .auth-glass-mark canvas { z-index: 1; transition: opacity .2s ease; }
#auth-screen .auth-glass-mark.is-settled img,
#auth-screen .auth-glass-mark.is-fallback img { opacity: 1; }
#auth-screen .auth-glass-mark.is-settled canvas { opacity: 0; }
#auth-screen .auth-brand h1 {
  margin: 0 0 5px;
  color: #f4fbfb;
  background: none;
  -webkit-text-fill-color: currentColor;
  font: 700 34px/1.13 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -.055em;
}
#auth-screen .auth-brand p { color: #a4b9c0; font: 400 13px/1.5 Inter, sans-serif; }
#auth-screen .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  border: 1px solid #c9f9ff1b;
  border-radius: 13px;
  background: #06131d;
}
#auth-screen .auth-tab {
  min-height: 43px;
  border-radius: 9px;
  color: #a9bdc4;
  font: 650 13px/1 Inter, sans-serif;
}
#auth-screen .auth-tab:hover { color: #f2ffff; background: #d4ffff0b; }
#auth-screen .auth-tab.active {
  color: #07171c !important;
  background: linear-gradient(135deg, #91f2e4, #44cfde) !important;
  box-shadow: 0 3px 14px #37e3da29, 0 1px 0 #fff8 inset;
}
#auth-screen .auth-form { gap: 15px; }
#auth-screen .auth-form label { gap: 7px; color: #d4e3e7; font: 600 12px/1.4 Inter, sans-serif; }
#auth-screen .auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #b6ebee35;
  border-radius: 10px;
  background: #071923d9;
  color: #f3fbfb;
  font-size: 14px;
  box-shadow: 0 1px 0 #e5ffff08 inset;
}
#auth-screen .auth-form input:hover { border-color: #a8eff06c; }
#auth-screen .auth-form input:focus-visible,
#auth-screen .auth-tab:focus-visible,
#auth-screen .auth-form button:focus-visible,
#auth-screen .auth-card a:focus-visible {
  outline: 2px solid #7cefe4;
  outline-offset: 2px;
}
#auth-screen .auth-form .btn-primary {
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid #c5fff0a6;
  border-radius: 10px;
  background: linear-gradient(135deg, #8bf1df, #43cbdc);
  color: #06171d;
  font: 750 13px/1 Inter, sans-serif;
  box-shadow: 0 10px 26px #34d8d22b, 0 1px 0 #fff9 inset;
}
#auth-screen .auth-form .btn-primary:hover { filter: brightness(1.07); box-shadow: 0 13px 30px #34d8d246; }
#auth-screen .auth-form .btn-ghost {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  background: transparent;
  color: #a9cdd0;
  font-size: 12px;
}
#auth-screen .auth-form .btn-ghost:hover { background: #a4ffff0e; color: #edfffd; }
#auth-screen .auth-legal {
  margin: 20px 0 0;
  color: #78939c;
  text-align: center;
  font: 400 11px/1.55 Inter, sans-serif;
}
#auth-screen .auth-legal a { color: #90e7da; text-underline-offset: 3px; }
#auth-screen .oauth-buttons[hidden],
#auth-screen .auth-form.hidden,
#auth-screen .auth-tabs.hidden { display: none !important; }
#auth-screen .oauth-buttons { margin: 0 0 22px; }
#auth-screen .btn-oauth { min-height: 43px; border-radius: 10px; }

@media (max-width: 820px) {
  #auth-screen { align-items: flex-start; padding: 16px 14px; }
  #auth-screen .auth-shell { display: block; width: min(100%, 470px); min-height: calc(100dvh - 32px); border-radius: 22px; }
  #auth-screen .auth-showcase { display: none; }
  #auth-screen .auth-card { min-height: calc(100dvh - 34px); max-height: none; padding: 28px clamp(22px, 6vw, 34px); border-radius: 22px; }
}
@media (max-height: 700px) and (min-width: 821px) {
  #auth-screen .auth-card { padding-top: 16px; padding-bottom: 16px; }
  #auth-screen .auth-glass-mark { width: 76px; height: 76px; margin-bottom: 2px; }
  #auth-screen .auth-brand { margin-bottom: 12px; }
  #auth-screen .auth-tabs { margin-bottom: 12px; }
  #auth-screen .auth-form { gap: 12px; }
  #auth-screen .auth-legal { margin-top: 12px; }
  #auth-screen .auth-showcase-art { height: 190px; }
}
@media (max-width: 390px) {
  #auth-screen .auth-card { padding-inline: 20px; }
  #auth-screen .auth-brand h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth-screen .auth-shell,
  #auth-screen .auth-card > * { animation: none !important; }
  #auth-screen .auth-glass-mark img,
  #auth-screen .auth-glass-mark canvas { transition: none; }
  #auth-screen .auth-liquid-lens { transition: none; will-change: auto; }
}
