:root {
  --ink: #eef6ef;
  --muted: #adbcaf;
  --line: rgba(236, 247, 237, .18);
  --surface: rgba(12, 27, 18, .92);
  --accent: #9ed349;
  --accent-strong: #b6e45d;
  --danger: #ff9b8d;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: #07110b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-canvas {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-canvas::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: -2;
  background: url("/web/assets/canavial-aereo-premium.webp") center / cover no-repeat;
  filter: saturate(.76) contrast(1.05) brightness(.7);
  animation: field-breathe 18s ease-in-out infinite alternate;
}

.auth-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 13, 8, .38) 0%, rgba(4, 13, 8, .18) 42%, rgba(4, 13, 8, .76) 68%, #07110b 100%),
    linear-gradient(0deg, rgba(3, 10, 6, .74), transparent 55%);
}

.auth-tch-mark {
  position: absolute;
  top: clamp(24px, 3.5vw, 48px);
  right: clamp(24px, 3.5vw, 48px);
  z-index: 4;
  width: clamp(136px, 12vw, 184px);
  aspect-ratio: 1.46;
  overflow: hidden;
  animation: enter-mark .58s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.auth-tch-mark img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-57%);
}

.auth-story {
  min-width: 0;
  padding: clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  animation: enter-story .7s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: fit-content;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -.055em;
  font-weight: 800;
}

.auth-brand i { color: var(--accent); font-style: normal; }
.auth-brand small { color: var(--muted); margin-left: 9px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.auth-message { width: 100%; min-width: 0; max-width: 690px; }
.auth-message span { display: block; color: var(--accent-strong); font-size: 12px; font-weight: 800; line-height: 1.45; letter-spacing: .18em; text-transform: uppercase; }
.auth-message h1 { max-width: 680px; margin: 14px 0 18px; padding-bottom: .04em; font-size: clamp(42px, 5.5vw, 78px); line-height: 1.04; letter-spacing: -.065em; text-wrap: balance; }
.auth-message p { max-width: 590px; margin: 0; color: #d3dfd4; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.55; }

.auth-outcomes {
  display: grid;
  max-width: 640px;
  margin-top: 28px;
  border-top: 1px solid rgba(236, 247, 237, .22);
}
.auth-outcomes > div {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.15fr);
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(236, 247, 237, .14);
  animation: enter-line .48s cubic-bezier(.2, .8, .2, 1) both;
}
.auth-outcomes > div:nth-child(1) { animation-delay: .22s; }
.auth-outcomes > div:nth-child(2) { animation-delay: .3s; }
.auth-outcomes > div:nth-child(3) { animation-delay: .38s; }
.auth-outcomes b { color: #f0f6f1; font-size: 11.5px; line-height: 1.4; }
.auth-outcomes small { color: #aebdaf; font-size: 10.5px; line-height: 1.45; }

.auth-panel {
  min-width: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(26px, 5vw, 70px);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 17, 11, .72), rgba(7, 17, 11, .96));
  backdrop-filter: blur(18px);
}

.auth-form-wrap {
  width: min(100%, 430px);
  min-width: 0;
  margin: auto;
  animation: enter-form .58s .12s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-form-wrap header { margin-bottom: 30px; }
.auth-eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.auth-form-wrap h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.auth-form-wrap header p, .auth-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.auth-form { display: grid; gap: 18px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.auth-field { display: grid; gap: 7px; }
.auth-field label { color: #d9e5da; font-size: 12px; font-weight: 700; }
.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(239, 248, 240, .055);
  padding: 0 14px;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.auth-field input:focus {
  border-color: rgba(182, 228, 93, .72);
  background: rgba(239, 248, 240, .09);
  transform: translateY(-1px);
}

.auth-inline-help {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 16px;
  margin-top: -7px;
}
.auth-inline-help a, .auth-back-link {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.auth-inline-help a:hover, .auth-back-link:hover { text-decoration: underline; }

.auth-action {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  color: #10200f;
  background: var(--accent);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-action:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(126, 178, 52, .18); }
.auth-action:active { transform: translateY(0); }
.auth-action:disabled { cursor: wait; opacity: .62; transform: none; box-shadow: none; }

.auth-feedback { min-height: 22px; color: var(--danger); font-size: 13px; line-height: 1.45; }
.auth-feedback.ok { color: var(--accent-strong); }
.auth-security { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-security b { color: #dde8de; }

@keyframes enter-story { from { opacity: 0; transform: translateY(14px); } }
@keyframes enter-form { from { opacity: 0; transform: translateX(20px); } }
@keyframes enter-mark { from { opacity: 0; transform: translateY(-8px); } }
@keyframes enter-line { from { opacity: 0; transform: translateY(8px); } }
@keyframes field-breathe { to { transform: scale(1.035) translate3d(-.6%, -.4%, 0); } }

@media (min-width: 861px) and (max-height: 780px) {
  .auth-story { padding: clamp(42px, 5vw, 64px); }
  .auth-message h1 { margin: 10px 0 12px; font-size: clamp(40px, 4.8vw, 62px); line-height: 1.03; }
  .auth-message p { font-size: 14px; line-height: 1.45; }
  .auth-outcomes { margin-top: 18px; }
  .auth-outcomes > div { padding: 8px 0; }
  .auth-panel { padding: clamp(34px, 4vw, 54px); }
  .auth-form-wrap header { margin-bottom: 22px; }
  .auth-form { gap: 14px; }
  .auth-security { margin-top: 16px; padding-top: 14px; }
}

@media (max-width: 860px) {
  .auth-canvas { grid-template-columns: 1fr; }
  .auth-canvas::after { background: linear-gradient(0deg, #07110b 18%, rgba(4, 13, 8, .34) 82%); }
  .auth-story { min-height: auto; padding: 26px 24px 30px; gap: 28px; }
  .auth-brand small { display: none; }
  .auth-tch-mark { top: 18px; right: 18px; width: 94px; }
  .auth-message span { font-size: 9px; }
  .auth-message h1 { margin: 9px 0 12px; font-size: clamp(34px, 10.5vw, 52px); line-height: 1.06; }
  .auth-message p { display: block; max-width: 520px; font-size: 13px; line-height: 1.45; }
  .auth-outcomes { display: none; }
  .auth-panel { min-height: auto; padding: 34px 24px 44px; border-left: 0; border-top: 1px solid var(--line); }
  .auth-grid { grid-template-columns: 1fr; }
}

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