/* Login mobile TheFiber — Conexão Viva. A marca e a autenticação vêm da API. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; font-family: "IBM Plex Sans", sans-serif; }
html[data-theme="dark"], html:not([data-theme]) {
  --accent: #9853e8 !important;
  --login-bg: #101426;
  --login-surface: #1b2137;
  --login-edge: #363d5b;
  --login-fg: #f7f5ff;
  --login-muted: #b5bdd3;
  --login-panel: #252047;
  --login-panel-edge: #56427b;
  --login-chip: #3e305f;
  --login-orb: #543290;
  --login-button: #9853e8;
  --login-foot: #25243e;
  --theme-meta: #101426 !important;
  color-scheme: dark;
}
html[data-theme="light"] {
  --accent: #7835c5 !important;
  --login-bg: #f8f7fc;
  --login-surface: #fff;
  --login-edge: #e2ddec;
  --login-fg: #211c36;
  --login-muted: #6e6a80;
  --login-panel: #f3edff;
  --login-panel-edge: #d9c8f2;
  --login-chip: #e6d9fa;
  --login-orb: #d9c4fa;
  --login-button: #7835c5;
  --login-foot: #f0ebf9;
  --theme-meta: #f8f7fc !important;
  color-scheme: light;
}
body [hidden] { display: none !important; }
html body, html body.branded {
  background: var(--login-bg) !important;
  background-image: none !important;
  color: var(--login-fg);
  padding: max(1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}
body .wrap {
  width: min(400px, 100%);
  min-height: 0;
  margin: 0 auto;
}
body .logo-chip { display: inline-flex; align-items: center; }
body .logo-chip img { display: block; object-fit: contain; }
body .brand-row { position: relative; }
body .theme-toggle { display: grid; place-items: center; cursor: pointer; }
body .theme-toggle svg { width: 20px; height: 20px; }
body .theme-toggle .ico-sun { display: none; }
html[data-theme="light"] body .theme-toggle .ico-sun { display: block; }
html[data-theme="light"] body .theme-toggle .ico-moon { display: none; }
body .stage { padding-top: 0; }
body .brand-row { max-width: calc(100% - 64px); min-height: 90px; display: flex; align-items: center; padding: 0; }
body .logo-chip {
  padding: 0; border: 0; background: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body .logo-chip img { width: 150px; max-width: 100%; max-height: 44px; }
body .nome-fallback { color: var(--login-fg); }
body .theme-toggle {
  position: fixed; z-index: 40;
  top: max(2.3rem, calc(env(safe-area-inset-top) + 1.3rem));
  right: max(1.5rem, calc((100vw - 400px) / 2 + 1.5rem));
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--login-surface); border: 1px solid var(--login-edge);
  color: var(--login-fg); box-shadow: none;
}
body .theme-toggle:focus-visible, body .eye:focus-visible, body .enter:focus-visible,
body .choose button:focus-visible { outline: 3px solid #53bde9; outline-offset: 3px; }
.hero-mobile {
  height: 226px; border-radius: 29px; position: relative; isolation: isolate;
  overflow: hidden; background: var(--login-panel); border: 1px solid var(--login-panel-edge);
}
.hero-mobile::before {
  content: ""; position: absolute; width: 164px; height: 164px;
  right: -2px; top: 33px; border-radius: 50%;
  background: var(--login-orb); opacity: .62;
}
.hero-copy { position: relative; z-index: 2; padding: 20px 19px; max-width: 65%; }
.hero-kicker {
  display: inline-block; border-radius: 99px; background: var(--login-chip);
  padding: 7px 12px; color: var(--accent); font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .14em; white-space: nowrap;
}
body .hero-copy h1 { margin: 18px 0 13px; font: 800 1.75rem/1.16 Manrope, sans-serif; letter-spacing: -.035em; text-align: left; }
.hero-copy p { margin: 0; color: var(--login-muted); font-size: .88rem; line-height: 1.55; }
.hero-fibers { position: absolute; z-index: 1; width: 53%; right: -4px; bottom: 3px; overflow: visible; }
.hero-fibers path { fill: none; stroke: #a16aeb; stroke-width: 1.6; opacity: .76; }
.hero-fibers .fiber-blue { stroke: #49c2ed; stroke-width: 2; }
.hero-fibers circle { fill: #4ac4ec; }
.hero-fibers circle:last-child { fill: #a975e9; }
body .hero-mobile .mascot {
  position: absolute; z-index: 3; pointer-events: none;
  width: 133px; height: 211px; object-fit: contain; right: 10px; top: 13px;
  filter: none;
}
html body .stage .card, html body .stage .card.default, html body.branded .stage .card {
  margin: 0; padding: 24px 3px 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body .card h2 { margin: 0 0 5px; font: 800 1.4rem/1.2 Manrope, sans-serif; letter-spacing: -.025em; }
body .lead, body.branded .lead { margin: 0 0 22px; color: var(--login-muted); font-size: .88rem; text-align: left; }
body .card label { display: flex; flex-direction: column; text-transform: uppercase; gap: 8px; margin-bottom: 18px; color: var(--login-muted); letter-spacing: .09em; font-size: .69rem; font-weight: 700; }
body .field {
  display: flex; align-items: center;
  min-height: 57px; padding: 0 14px; gap: 13px; border-radius: 15px;
  border: 1px solid var(--login-edge); background: var(--login-surface);
  transition: border-color .15s, box-shadow .15s;
}
body .field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
body .field .ic { opacity: 1; color: var(--login-muted); width: 22px; height: 22px; flex: none; }
body .field .ic svg, body .eye svg { width: 22px; height: 22px; display: block; }
body .field input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--login-fg); min-width: 0; min-height: 55px; padding: 0; font: 16px "IBM Plex Sans", sans-serif; }
body .field input::placeholder { color: var(--login-muted); opacity: 1; }
body .eye { border: 0; background: transparent; cursor: pointer; color: var(--login-muted); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
body button.enter {
  width: 100%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  margin-top: 5px; min-height: 58px; border-radius: 17px;
  background: var(--login-button); color: #fff;
  box-shadow: none; gap: 12px;
}
body button.enter span { font-size: 1.35rem; line-height: 0; }
body button.enter:disabled { opacity: .55; cursor: wait; }
body #msg { color: #bc563f; font-size: .85rem; min-height: 0; margin: 0; }
body #msg:not(:empty) { margin: 12px 0; }
body .choose { display: none; flex-direction: column; gap: 8px; margin: 14px 0 0; }
body .choose.open { display: flex; }
body .choose button { cursor: pointer; border: 1px solid var(--login-edge); border-radius: 12px; padding: 12px; background: var(--login-surface); color: var(--login-fg); min-height: 48px; font: 600 .88rem "IBM Plex Sans", sans-serif; }
.login-foot {
  margin: 32px 0 0; padding: 18px 3px 0; border-top: 1px solid var(--login-edge);
  display: flex; align-items: center; gap: 12px;
}
.foot-mark {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--login-foot); color: var(--accent); font-weight: 800;
}
.login-foot strong { display: block; font-size: .82rem; }
.login-foot small { display: block; margin-top: 3px; color: var(--login-muted); font-size: .74rem; }
body .blocked h1 { color: var(--login-fg); }
body .blocked p { color: var(--login-muted); }
body .blocked { max-width: 420px; margin: 20vh auto 0; text-align: center; padding: 1.25rem; }
@media (max-width: 380px) {
  body .hero-mobile .mascot { width: 118px; height: 190px; right: 2px; top: 27px; }
  .hero-copy { padding-left: 16px; }
  body .hero-copy h1 { font-size: 1.58rem; }
  .hero-copy p { font-size: .82rem; }
}
