/* =========================================================
   TheSpaceLaunches · Auth pages (signin / signup) — M2 B1
   Split-screen layout: left hero visual + right auth form.
   Common dev-* classes (forms, errors, buttons) inherited from
   dev-shared.css per M2 B-side frontend guidelines §4.
   ========================================================= */

/* ---- Split layout scaffold ---- */
.auth-split {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--nav-h, 64px));
}

/* ---- Left: Hero visual panel ---- */
.auth-hero {
  position: relative;
  flex: 0 0 55%;
  max-width: 55%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.auth-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Gradient overlay: bottom-heavy so text stays readable */
.auth-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(4, 7, 15, 0.20) 0%,
      rgba(4, 7, 15, 0.45) 40%,
      rgba(4, 7, 15, 0.88) 85%,
      rgba(4, 7, 15, 0.96) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(76, 201, 255, 0.12), transparent 55%);
  pointer-events: none;
}

/* Text content pinned to lower-left of the hero */
.auth-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 48px 56px;
  max-width: 540px;
}
.auth-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  border: 1px solid rgba(76, 201, 255, 0.35);
  background: rgba(76, 201, 255, 0.08);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.auth-hero__title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.auth-hero__sub {
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Perk list: small feature highlights on the hero */
.auth-hero__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-hero__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-1);
  letter-spacing: 0.01em;
}
.auth-hero__perk-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 201, 255, 0.08);
  border: 1px solid rgba(76, 201, 255, 0.2);
  border-radius: 8px;
}

/* ---- Right: Auth form panel ---- */
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(43, 110, 212, 0.06), transparent 60%),
    var(--space-bg-0);
}

/* ---- Card (restyled for split context) ---- */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg-strong, rgba(8, 16, 33, 0.78));
  border: var(--border-glow, 1px solid rgba(76, 201, 255, 0.18));
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-card, 0 18px 48px rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 32px 28px;
}

.auth-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-card__brand .brand__name {
  font-family: var(--font-display, "Orbitron", system-ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-card__title {
  font-family: var(--font-display, "Orbitron", system-ui);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text-0, #f4f9ff);
  margin: 0 0 6px;
}
.auth-card__sub {
  color: var(--text-2, #8fa3b8);
  font-size: 13px;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* ---- Tab strip (shared between signin / signup when tab mode) ---- */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  background: rgba(4, 7, 15, 0.45);
  border: 1px solid rgba(76, 201, 255, 0.18);
  border-radius: 8px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2, #8fa3b8);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.auth-tab:hover { color: var(--text-1, #e6f1ff); }
.auth-tab--active {
  color: var(--accent-blue, #4cc9ff);
  background: rgba(76, 201, 255, 0.10);
  border-color: rgba(76, 201, 255, 0.30);
}
.auth-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 255, 0.18);
}

/* ---- Forms visibility ---- */
.auth-form { display: none; }
.auth-form--active { display: block; }

.auth-submit { margin-top: 8px; }
.auth-submit:disabled { cursor: not-allowed; transform: none; }

/* ---- Footer links ---- */
.auth-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(76, 201, 255, 0.12);
  font-size: 12px;
  color: var(--text-2, #8fa3b8);
  text-align: center;
}
.auth-foot a {
  color: var(--accent-blue, #4cc9ff);
  text-decoration: none;
}
.auth-foot a:hover { text-decoration: underline; }
