/* Auth shell — look marketing (navy hero + nav) without breaking Bootstrap forms */
:root {
  --auth-navy: #0f1e35;
  --auth-navy-mid: #162a47;
  --auth-accent: #f5a623;
  --auth-accent-dark: #d48e12;
  --auth-text: #1f2937;
  --auth-muted: #6b7280;
  --auth-line: #e5e7eb;
  --auth-font-display: "Cormorant Garamond", Georgia, serif;
  --auth-font-body: "DM Sans", system-ui, sans-serif;
  --auth-nav-h: 68px;
}

body.auth-shell {
  margin: 0;
  min-height: 100vh;
  font-family: var(--auth-font-body);
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(245, 166, 35, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 8% 85%, rgba(37, 99, 235, 0.14), transparent 50%),
    linear-gradient(160deg, #0a1526 0%, var(--auth-navy) 45%, #132844 100%);
  -webkit-font-smoothing: antialiased;
}

body.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 88%);
  pointer-events: none;
  z-index: 0;
}

.auth-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--auth-nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 21, 38, 0.72);
  backdrop-filter: blur(10px);
}

.auth-nav-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-brand img {
  display: block;
  height: 40px;
  width: auto;
}

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-nav-links > a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-nav-links > a:hover {
  color: #fff;
}

.auth-nav-login {
  padding: 0.35rem 0.65rem;
}

.auth-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--auth-accent) !important;
  color: #0a1526 !important;
  font-weight: 700 !important;
  border-radius: 8px;
  padding: 0.45rem 0.9rem !important;
}

.auth-nav-cta:hover {
  background: var(--auth-accent-dark) !important;
  color: #0a1526 !important;
}

.auth-lang {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  margin-left: 0.25rem;
}
.auth-lang a {
  padding: 0.28rem 0.55rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  background: transparent;
}
.auth-lang a:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.auth-lang a.active {
  background: rgba(245, 166, 35, 0.95) !important;
  color: #0a1526 !important;
}

.auth-main {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 3rem;
}

.auth-stage {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - var(--auth-nav-h) - 5rem);
}

.auth-intro {
  max-width: 34rem;
}

.auth-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-accent);
  font-weight: 600;
}

.auth-title {
  margin: 0 0 0.75rem;
  font-family: var(--auth-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #fff;
}

.auth-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32rem;
}

.auth-scope {
  padding: 0.75rem 0 0.75rem 0.85rem;
  border-left: 3px solid #0F1E35;
}

.auth-scope-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0F1E35;
}

.auth-scope-note {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5a6a7e;
}

.auth-card-wrap {
  width: 100%;
  max-width: var(--auth-card-max, 400px);
  justify-self: end;
}

.auth-card {
  background: #fff;
  color: var(--auth-text);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.35rem;
}

.auth-card .form-label {
  color: #374151;
}

.auth-card .form-control,
.auth-card .form-select {
  border-radius: 8px;
}

.auth-card .btn-dark,
.auth-card .btn-auth-primary {
  background: var(--auth-navy);
  border-color: var(--auth-navy);
  border-radius: 8px;
  font-weight: 600;
  color: #fff !important;
}

/* .auth-card a { color: navy } haría invisible el texto de <a class="btn-dark"> */
.auth-card a.btn-dark,
.auth-card a.btn-auth-primary {
  color: #fff !important;
}

.auth-card .btn-dark:hover,
.auth-card .btn-auth-primary:hover,
.auth-card a.btn-dark:hover,
.auth-card a.btn-auth-primary:hover {
  background: var(--auth-navy-mid);
  border-color: var(--auth-navy-mid);
  color: #fff !important;
}

.auth-card a {
  color: var(--auth-navy);
}

.auth-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.auth-foot a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.auth-foot a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .auth-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }
  .auth-card-wrap {
    justify-self: center;
    max-width: min(100%, var(--auth-card-max, 400px));
  }
  .auth-intro {
    text-align: center;
    margin: 0 auto;
  }
  .auth-lead {
    margin-inline: auto;
  }
  .auth-nav-links > a:not(.auth-nav-login):not(.auth-nav-cta) {
    display: none;
  }
}
