.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(720px, 59.5vw) minmax(470px, 40.5vw);
  background: #fff;
}

.brand-panel {
  position: relative;
  min-height: 100svh;
  padding: clamp(34px, 4.1vw, 76px) clamp(42px, 6vw, 142px);
  color: #fff;
  background:
    radial-gradient(circle at 72% 92%, rgba(0, 213, 232, .24), transparent 19%),
    radial-gradient(circle at 19% 14%, rgba(15, 99, 255, .22), transparent 28%),
    linear-gradient(135deg, #031128 0%, #061a3a 49%, #082150 100%);
  overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .9;
}

.brand-panel::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,151,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20,151,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 40% 40%, #000 0, transparent 68%);
}

.brand-panel::after {
  width: 52vw;
  height: 16vw;
  right: -14vw;
  bottom: -5vw;
  background: repeating-radial-gradient(ellipse at center, transparent 0 13px, rgba(20,151,255,.46) 14px 15px, transparent 16px 28px);
  transform: rotate(-9deg);
  filter: drop-shadow(0 0 14px rgba(0, 213, 232, .35));
}

.circuit-left {
  position: absolute;
  inset: 0 auto 0 0;
  width: 150px;
  background:
    radial-gradient(circle at 36px 82px, #1479ff 0 3px, transparent 4px),
    radial-gradient(circle at 78px 242px, #1479ff 0 3px, transparent 4px),
    radial-gradient(circle at 112px 438px, #1479ff 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 20px, rgba(20,121,255,.85) 21px 22px, transparent 23px),
    linear-gradient(135deg, transparent 0 80px, rgba(0,213,232,.55) 81px 82px, transparent 83px),
    linear-gradient(45deg, transparent 0 170px, rgba(20,121,255,.45) 171px 172px, transparent 173px);
  opacity: .7;
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.eyebrow {
  width: fit-content;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid rgba(20, 151, 255, .44);
  border-radius: 999px;
  background: rgba(5, 31, 70, .55);
  color: var(--cyan-400);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 34px rgba(0,0,0,.16);
}

.eyebrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.brand-panel h1 {
  margin: 24px 0 12px;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}

.brand-panel h1 span {
  color: transparent;
  background: linear-gradient(90deg, #105dff 0%, #00c7df 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 780px;
  margin: 0 0 34px;
  color: rgba(239, 246, 255, .88);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.28;
}

.auth-panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 44px 26px 52px;
  background:
    radial-gradient(circle at 90% 33%, rgba(20, 151, 255, .08), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  overflow: hidden;
}

.auth-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 45%, rgba(20,121,255,.18) 0 2px, transparent 3px) 0 0 / 22px 22px,
    repeating-radial-gradient(ellipse at 103% -8%, rgba(0, 171, 219, .22) 0 1px, transparent 2px 11px);
  opacity: .7;
}

.auth-background::before,
.auth-background::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(0, 171, 219, .11);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(18deg);
}

.auth-background::before {
  width: 420px;
  height: 280px;
  top: -92px;
  right: -92px;
  border-radius: 0 0 0 44px;
}

.auth-background::after {
  width: 240px;
  height: 180px;
  bottom: 30px;
  left: -85px;
  border-color: rgba(0, 171, 219, .12);
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
  padding: 42px 68px 40px;
  border: 1px solid rgba(212, 222, 238, .72);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.auth-footer {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  color: #8b95a8;
  font-size: 14px;
}

.mobile-logo-block { display: none; }

/* AJUSTE FINO V2 — proporção desktop e encaixe no viewport */
@media (min-width: 1041px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .login-shell {
    height: 100svh;
    min-height: 640px;
    grid-template-columns: minmax(660px, 58.5vw) minmax(460px, 41.5vw);
    overflow: hidden;
  }

  .brand-panel {
    min-height: 0;
    height: 100svh;
    padding: clamp(24px, 3.1vw, 48px) clamp(40px, 5.2vw, 92px);
    overflow: hidden;
  }

  .brand-content {
    max-width: 890px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .eyebrow {
    height: 38px;
    padding: 0 18px;
    font-size: 13px;
  }

  .brand-panel h1 {
    margin: 20px 0 10px;
    font-size: clamp(42px, 4.35vw, 61px);
    line-height: .98;
  }

  .hero-copy {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(16px, 1.15vw, 20px);
    line-height: 1.25;
  }

  .auth-panel {
    height: 100svh;
    min-height: 0;
    padding: 22px 22px 34px;
    overflow: hidden;
  }

  .auth-card {
    width: min(100%, 565px);
    padding: clamp(26px, 3.1vh, 34px) clamp(38px, 3.4vw, 56px) clamp(24px, 2.6vh, 32px);
    border-radius: 13px;
  }

  .auth-footer {
    bottom: 13px;
    font-size: 12px;
  }
}

@media (min-width: 1041px) and (max-height: 760px) {
  .brand-panel h1 {
    font-size: clamp(38px, 4vw, 53px);
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .auth-card {
    transform: scale(.94);
    transform-origin: center;
  }
}
