/*
 * Orbita — modernizacao visual exclusiva da tela inicial.
 * Este arquivo foi escrito para a estrutura publica atual e deve ser carregado
 * depois de assets/css/app.css. Ele nao altera conteudo, rotas ou JavaScript.
 */

.auth {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  height: auto;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 620px at -8% -12%, rgba(76, 91, 220, .22), transparent 68%),
    radial-gradient(760px 640px at 105% 110%, rgba(255, 112, 40, .15), transparent 66%),
    #070912;
}

.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .46;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 22%, rgba(117, 213, 255, .9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 43% 77%, rgba(255, 255, 255, .75) 0 1px, transparent 1.4px),
    radial-gradient(circle at 88% 64%, rgba(207, 165, 255, .8) 0 1px, transparent 1.5px);
  background-size: 170px 170px, 230px 230px, 280px 280px, 340px 340px;
}

.auth > * { min-width: 0; }

.auth-hero {
  min-height: 100dvh;
  padding: clamp(52px, 7vw, 104px);
  gap: clamp(24px, 3.4vh, 38px);
  border-right: 1px solid rgba(138, 157, 235, .11);
  background:
    linear-gradient(120deg, rgba(18, 23, 54, .72), rgba(7, 9, 18, .3) 55%, rgba(7, 9, 18, .86)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(126, 146, 230, .035) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(126, 146, 230, .035) 80px);
}

.auth .brand-img {
  width: clamp(220px, 34vw, 440px);
  margin: 0 0 clamp(4px, 1.2vh, 12px);
  filter: drop-shadow(0 14px 34px rgba(65, 122, 255, .22));
}

.auth-hero h2 {
  max-width: 650px;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.01;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 12px 44px rgba(0, 0, 0, .35);
  background: linear-gradient(105deg, #f8f9ff 16%, #d8e4ff 60%, #74dcff 115%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth .hero-points {
  width: min(650px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  color: #c0c6dc;
}

.auth .hero-points li {
  min-height: 102px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(137, 158, 240, .13);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(25, 31, 60, .56), rgba(11, 14, 28, .36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  font-size: 13px;
  line-height: 1.35;
}

.auth .hero-points .ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  color: #081019;
  border-radius: 9px;
  background: linear-gradient(135deg, #66dcff, #8497ff);
  box-shadow: 0 8px 22px rgba(66, 194, 255, .22);
}

.auth .orbit-art {
  right: clamp(-250px, -12vw, -130px);
  bottom: 50%;
  width: clamp(440px, 42vw, 720px);
  height: auto;
  aspect-ratio: 1;
  transform: translateY(50%);
  opacity: .58;
  filter: hue-rotate(165deg) saturate(1.2);
}

.auth .orbit-art .planet {
  inset: 34%;
  background: radial-gradient(circle at 31% 25%, #c7f2ff 0 3%, #5978ff 14%, #30206f 45%, #0a0d28 76%);
  box-shadow:
    inset -26px -30px 46px rgba(0, 0, 0, .55),
    0 0 36px rgba(62, 189, 255, .45),
    0 0 100px rgba(95, 70, 255, .22);
}

.auth .orbit-art .ring {
  border-style: solid;
  border-color: rgba(115, 205, 255, .25);
}

.auth .orbit-art .r1 { inset: 20%; }
.auth .orbit-art .r2 { inset: 7%; border-color: rgba(187, 94, 255, .18); }

.auth-card {
  position: relative;
  width: min(460px, calc(100% - 40px));
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(153, 172, 255, .28);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(25, 30, 55, .88), rgba(11, 14, 26, .86));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .44),
    inset 0 1px 0 rgba(255, 255, 255, .065);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(71, 205, 255, .28), transparent 34%, transparent 72%, rgba(255, 133, 57, .22));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.auth-card h1 {
  margin-bottom: 8px;
  font-size: clamp(29px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.auth-sub {
  margin-bottom: 32px;
  color: #858da9;
}

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

.auth .field-label {
  color: #c0c6dc;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .075em;
}

.auth .field input {
  min-height: 54px;
  padding: 0 16px;
  color: #f7f8ff;
  caret-color: #ff8a3d;
  background: rgba(5, 7, 15, .72);
  border: 1px solid rgba(137, 153, 219, .19);
  border-radius: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth .field input:hover { border-color: rgba(148, 168, 245, .34); }

.auth .field input:focus {
  border-color: #ff8a3d;
  background: rgba(7, 9, 18, .92);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .13), 0 10px 28px rgba(0, 0, 0, .16);
}

.auth .btn.primary.big {
  min-height: 56px;
  margin-top: 4px;
  color: #1c0d04;
  border-radius: 14px;
  background: linear-gradient(105deg, #ff8a3d, #ffb26f);
  box-shadow: 0 12px 32px rgba(255, 114, 36, .21), inset 0 1px 0 rgba(255, 255, 255, .32);
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth .btn.primary.big:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  background: linear-gradient(105deg, #ff8a3d, #ffb26f);
  box-shadow: 0 18px 38px rgba(255, 114, 36, .29), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.auth .btn.primary.big:active { transform: translateY(0); }

.auth-switch {
  margin-top: 24px;
  color: #858da9;
}

.auth-switch a {
  color: #66d7ff;
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 1120px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr); }
  .auth-hero { padding: 56px 44px; }
  .auth .hero-points { grid-template-columns: 1fr; max-width: 430px; gap: 8px; }
  .auth .hero-points li { min-height: 0; flex-direction: row; align-items: center; }
  .auth .orbit-art { right: -260px; opacity: .42; }
}

@media (max-width: 800px) {
  .auth {
    display: block;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .auth-hero {
    min-height: auto;
    padding: 36px 24px 24px;
    align-items: flex-start;
    border-right: 0;
  }

  .auth .brand-img { width: min(240px, 66vw); margin-bottom: 2px; }

  .auth-hero h2 {
    max-width: 570px;
    font-size: clamp(35px, 10vw, 52px);
  }

  .auth .hero-points {
    display: grid;
    width: 100%;
    max-width: 560px;
    margin-top: 0;
  }

  .auth .hero-points li { padding: 12px 14px; }
  .auth .hero-points .ico { width: 25px; height: 25px; }

  .auth .orbit-art {
    width: 520px;
    right: -330px;
    bottom: auto;
    top: 42%;
    transform: translateY(-50%);
    opacity: .35;
  }

  .auth-card {
    align-self: start;
    width: min(560px, calc(100% - 32px));
    margin: 12px auto 30px;
  }
}

@media (max-width: 480px) {
  .auth-hero { padding: 28px 20px 18px; }
  .auth .brand-img { width: 190px; }
  .auth-hero h2 { max-width: 350px; font-size: clamp(32px, 10.6vw, 43px); }
  .auth .hero-points { gap: 7px; }
  .auth .hero-points li { padding: 10px 12px; font-size: 12px; }

  .auth-card {
    width: calc(100% - 32px);
    padding: 27px 22px;
    border-radius: 20px;
  }

  .auth-card h1 { font-size: 28px; }
  .auth-sub { margin-bottom: 26px; }
  .auth .field input { min-height: 52px; }
}

@media (max-height: 740px) and (min-width: 801px) {
  .auth { height: 100dvh; overflow-y: auto; }
  .auth-hero { padding-top: 36px; padding-bottom: 36px; }
  .auth .brand-img { width: 300px; }
  .auth-hero h2 { font-size: clamp(34px, 3.8vw, 54px); }
  .auth .hero-points li { min-height: 88px; }
  .auth-card { align-self: start; margin: 16px 0; padding-top: 30px; padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth *, .auth *::before, .auth *::after { transition: none !important; }
}

