:root {
  --aurora-ink: #131922;
  --aurora-muted: #758092;
  --aurora-paper: #f3f6fa;
  --aurora-card: #fff;
  --aurora-line: #e1e8f2;
  --aurora-blue: #2f6bff;
  --aurora-navy: #12203a;
  --aurora-mint: #72e5c8;
  --aurora-purple: #8c75ff;
  --aurora-shadow: 0 24px 70px rgba(29, 48, 83, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.login--aurora-test {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--aurora-paper);
  color: var(--aurora-ink);
  font-family: Montserrat, Arial, sans-serif;
}

body.login--aurora-test .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  gap: 22px;
  min-height: 100vh;
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px;
  background: radial-gradient(circle at 12% 8%, rgba(114,229,200,.18), transparent 22%), var(--aurora-paper);
}

body.login--aurora-test .auth-hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 44px);
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 4vw, 54px);
  border-radius: 28px;
  background: linear-gradient(135deg, #101d34 0%, #1b3763 56%, #2f6bff 100%);
  box-shadow: 0 18px 50px rgba(29, 57, 120, .2);
  color: #fff;
}
body.login--aurora-test .auth-hero::before {
  position: absolute;
  top: -210px;
  right: -100px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(143,234,212,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(143,234,212,.05), 0 0 0 75px rgba(143,234,212,.03);
  content: "";
}
body.login--aurora-test .auth-hero::after {
  position: absolute;
  right: 22%;
  bottom: -105px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--aurora-mint);
  content: "";
  opacity: .16;
  filter: blur(18px);
}
body.login--aurora-test .auth-hero__photo { display: none; }
body.login--aurora-test .auth-hero__ambient {
  position: absolute;
  z-index: 0;
  top: 16%;
  right: 16%;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.025), 0 0 0 42px rgba(255,255,255,.02);
  animation: aurora-login-float 12s ease-in-out infinite;
}
body.login--aurora-test .auth-hero__brand,
body.login--aurora-test .auth-slider,
body.login--aurora-test .auth-benefits,
body.login--aurora-test .auth-slider__controls { position: relative; z-index: 1; }
body.login--aurora-test .auth-hero__brand-full { width: min(270px, 62%); height: auto; opacity: .98; filter: brightness(0) invert(1); }
body.login--aurora-test .auth-hero__brand-mobile { display: none; }
body.login--aurora-test .auth-slider { min-height: 255px; max-width: 720px; margin-top: auto; }
body.login--aurora-test .auth-slide {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
body.login--aurora-test .auth-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
body.login--aurora-test .auth-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #a9f7e4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body.login--aurora-test .auth-slide__eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora-mint); box-shadow: 0 0 0 5px rgba(114,229,200,.16); content: ""; }
body.login--aurora-test .auth-slide h2 { max-width: 700px; margin: 0; color: #fff; font-family: Montserrat, Arial, sans-serif; font-size: clamp(31px, 4vw, 58px); font-weight: 850; letter-spacing: -.07em; line-height: .99; }
body.login--aurora-test .auth-slide h2 em { color: #a9f7e4; font-style: normal; }
body.login--aurora-test .auth-slide > p:last-child { max-width: 580px; margin: 18px 0 0; color: #c7d6f3; font-size: 13px; line-height: 1.7; }
body.login--aurora-test .auth-benefits { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 690px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
body.login--aurora-test .auth-benefits > div { display: grid; grid-template-columns: 31px 1fr; column-gap: 9px; padding-right: 14px; }
body.login--aurora-test .auth-benefits > div + div { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
body.login--aurora-test .benefit-icon { grid-row: 1 / 3; color: var(--aurora-mint); font-size: 21px; }
body.login--aurora-test .auth-benefits strong { color: #fff; font-size: 11px; font-weight: 800; }
body.login--aurora-test .auth-benefits small { margin-top: 3px; color: #b5c7e7; font-size: 10px; }
body.login--aurora-test .auth-slider__controls { display: flex; align-items: center; justify-content: space-between; max-width: 690px; margin-top: 24px; }
body.login--aurora-test .slider-arrow { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; }
body.login--aurora-test .slider-arrow:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
body.login--aurora-test .slider-dots { display: flex; gap: 8px; }
body.login--aurora-test .slider-dot { width: 8px; height: 8px; border: 0; border-radius: 99px; background: #9aacc9; }
body.login--aurora-test .slider-dot.is-active { width: 25px; background: var(--aurora-mint); }

body.login--aurora-test .auth-panel {
  position: relative;
  display: flex;
  min-height: calc(100vh - 44px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}
body.login--aurora-test .auth-panel::before {
  position: absolute;
  right: -145px;
  bottom: -155px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(47,107,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(47,107,255,.025), 0 0 0 110px rgba(47,107,255,.018);
  content: "";
}
body.login--aurora-test .auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 36px;
  border: 1px solid var(--aurora-line);
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--aurora-shadow);
}
body.login--aurora-test .auth-card__logo { display: block; width: min(210px, 72%); height: auto; margin: 0 0 31px; }
body.login--aurora-test .auth-card__logo-movil { display: none; }
body.login--aurora-test .auth-card__heading { margin-bottom: 28px; }
body.login--aurora-test .auth-card__kicker { margin: 0 0 8px !important; color: var(--aurora-blue) !important; font-size: 10px !important; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
body.login--aurora-test .auth-card__heading h1 { margin: 0 0 8px; color: var(--aurora-ink); font-family: Montserrat, Arial, sans-serif; font-size: clamp(27px, 3vw, 35px); font-weight: 850; letter-spacing: -.065em; line-height: 1.05; }
body.login--aurora-test .auth-card__heading > p { margin: 0; color: var(--aurora-muted); font-size: 12px; }
body.login--aurora-test .login-field { margin-bottom: 17px; }
body.login--aurora-test .login-field .campo__etiqueta { display: block; margin: 0 0 7px; color: #52627a; font-size: 11px; font-weight: 800; }
body.login--aurora-test .login-control { position: relative; }
body.login--aurora-test .login-control .control { width: 100%; height: 51px; padding: 0 47px 0 48px; border: 1px solid #dfe7f0; border-radius: 11px; background: #fbfcfe; color: var(--aurora-ink); font: 500 13px Montserrat, Arial, sans-serif; outline: none; box-shadow: 0 3px 10px rgba(29,48,83,.035); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
body.login--aurora-test .login-control .control::placeholder { color: #9aa7b8; }
body.login--aurora-test .login-control .control:focus { border-color: var(--aurora-blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
body.login--aurora-test .login-control__icon { position: absolute; z-index: 2; top: 50%; left: 16px; width: 18px; height: 18px; color: var(--aurora-blue); transform: translateY(-50%); }
body.login--aurora-test .login-control__icon svg,
body.login--aurora-test .password-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
body.login--aurora-test .password-toggle { position: absolute; z-index: 3; top: 50%; right: 9px; display: grid; width: 33px; height: 33px; place-items: center; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #7c8ba1; transform: translateY(-50%); }
body.login--aurora-test .password-toggle:hover { background: #edf3ff; color: var(--aurora-blue); }
body.login--aurora-test .login-forgot { margin: 1px 0 17px; text-align: right; }
body.login--aurora-test .login-forgot__link { padding: 0; border: 0; background: transparent; color: #687890; font: 700 11px Montserrat, Arial, sans-serif; text-decoration: none; }
body.login--aurora-test .login-forgot__link:hover { color: var(--aurora-blue); text-decoration: underline; }
body.login--aurora-test .login-submit { display: flex; width: 100%; height: 52px; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; padding: 0 20px; border: 0; border-radius: 11px; background: linear-gradient(110deg, #2f6bff, #244cc5); color: #fff; box-shadow: 0 10px 22px rgba(47,107,255,.22); font: 800 13px Montserrat, Arial, sans-serif; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
body.login--aurora-test .login-submit:hover { background: linear-gradient(110deg, #4380ff, #2f6bff); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(47,107,255,.28); }
body.login--aurora-test .login-submit__arrow { font-size: 18px; font-weight: 400; transition: transform .2s ease; }
body.login--aurora-test .login-submit:hover .login-submit__arrow { transform: translateX(4px); }
body.login--aurora-test .auth-card__footer { margin-top: 27px; text-align: center; }
body.login--aurora-test .auth-card__line { display: block; height: 1px; margin-bottom: 16px; background: #e8eef5; }
body.login--aurora-test .auth-card__footer p { margin: 0; color: #8390a2; font-size: 10px; line-height: 1.6; }
body.login--aurora-test .auth-card__footer a { color: var(--aurora-blue); font-weight: 800; text-decoration: none; }
body.login--aurora-test .auth-card__footer a:hover { text-decoration: underline; }
body.login--aurora-test .auth-panel__footer { position: absolute; right: 24px; bottom: 4px; left: 24px; color: #9aa7b8; font-size: 9px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
body.login--aurora-test .avisos { z-index: 100; }

/* El acceso de clientes conserva la misma familia visual, con un acento
   violeta para distinguirlo del acceso interno del gabinete. */
body.login--client .auth-slide__eyebrow,
body.login--client .auth-card__kicker,
body.login--client .auth-card__footer a { color: var(--aurora-purple) !important; }
body.login--client .auth-slide__eyebrow::before { background: var(--aurora-purple); box-shadow: 0 0 0 5px rgba(140,117,255,.18); }
body.login--client .auth-slide h2 em { color: #c3b9ff; }
body.login--client .slider-dot.is-active { background: #b5a7ff; }
body.login--client .login-control__icon { color: var(--aurora-purple); }
body.login--client .login-control .control:focus { border-color: var(--aurora-purple); box-shadow: 0 0 0 3px rgba(140,117,255,.14); }
body.login--client .password-toggle:hover { background: #f0edff; color: var(--aurora-purple); }
body.login--client .login-submit { background: linear-gradient(110deg, #8c75ff, #5e4bd0); box-shadow: 0 10px 22px rgba(140,117,255,.22); }
body.login--client .login-submit:hover { background: linear-gradient(110deg, #9c88ff, #705be8); box-shadow: 0 14px 28px rgba(140,117,255,.28); }

@keyframes aurora-login-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 12px, 0); }
}

@media (max-width: 1050px) {
  body.login--aurora-test .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); padding: 16px; gap: 16px; }
  body.login--aurora-test .auth-hero { min-height: calc(100vh - 32px); padding: 30px; border-radius: 23px; }
  body.login--aurora-test .auth-panel { min-height: calc(100vh - 32px); padding: 10px; }
  body.login--aurora-test .auth-card { padding: 29px; }
}

@media (max-width: 760px) {
  body.login--aurora-test { background: var(--aurora-paper); }
  body.login--aurora-test .auth-shell { display: block; min-height: 100vh; padding: 10px; }
  body.login--aurora-test .auth-hero { min-height: 195px; padding: 22px; border-radius: 20px; }
  body.login--aurora-test .auth-hero::before { top: -190px; right: -110px; width: 380px; height: 380px; }
  body.login--aurora-test .auth-hero__brand-full { width: 160px; }
  body.login--aurora-test .auth-slider { min-height: 0; margin-top: 42px; }
  body.login--aurora-test .auth-slide h2 { max-width: 320px; font-size: 26px; }
  body.login--aurora-test .auth-slide > p:last-child,
  body.login--aurora-test .auth-benefits,
  body.login--aurora-test .auth-slider__controls { display: none; }
  body.login--aurora-test .auth-panel { min-height: 0; padding: 10px 0 0; }
  body.login--aurora-test .auth-panel::before { display: none; }
  body.login--aurora-test .auth-card { width: 100%; padding: 25px 20px 22px; border-radius: 20px; }
  body.login--aurora-test .auth-card__logo { width: 175px; margin: 0 auto 24px; }
  body.login--aurora-test .auth-card__heading { margin-bottom: 22px; text-align: center; }
  body.login--aurora-test .auth-card__heading h1 { font-size: 27px; }
  body.login--aurora-test .auth-panel__footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.login--aurora-test .auth-hero__ambient,
  body.login--aurora-test .auth-slide { animation: none; transition: none; }
}

/* El acceso interno ocupa todo el viewport: la imagen se conserva como
   protagonista y el formulario queda integrado en un panel lateral limpio. */
body.login--internal .auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(520px, .92fr);
  gap: 0;
  max-width: none;
  padding: 0;
  background: #f7f9fc;
}
body.login--internal .auth-hero {
  z-index: 3;
  min-height: 100vh;
  margin-right: -124px;
  overflow: visible;
  border-radius: 0;
}
body.login--internal .auth-hero__photo {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: -124px;
  width: calc(100% + 124px);
  z-index: 0;
  background: url('../img/login-fondo.png') 22% center / cover no-repeat;
  opacity: .72;
  will-change: transform;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
body.login--internal .auth-hero::after {
  top: 0;
  bottom: 0;
  z-index: 0;
  right: -124px;
  width: calc(100% + 124px);
  height: auto;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(8,22,48,.82) 0%, rgba(24,58,120,.64) 57%, rgba(49,92,175,.35) 77%, rgba(248,250,252,0) 100%);
  opacity: 1;
  filter: none;
  pointer-events: none;
}
body.login--internal .auth-panel {
  z-index: 2;
  min-height: 100vh;
  padding: 42px clamp(48px, 6vw, 110px) 42px clamp(100px, 8vw, 148px);
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
  backdrop-filter: none;
}
body.login--internal .auth-card {
  width: min(100%, 530px);
  border-radius: 22px;
}

@media (max-width: 1050px) {
  body.login--internal .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); }
  body.login--internal .auth-hero { min-height: 100vh; margin-right: -76px; border-radius: 0; }
  body.login--internal .auth-hero__photo { right: -76px; width: calc(100% + 76px); }
  body.login--internal .auth-hero::after { right: -76px; width: calc(100% + 76px); }
  body.login--internal .auth-panel { min-height: 100vh; padding: 30px 32px 30px 76px; border-radius: 0; }
}

@media (max-width: 760px) {
  body.login--internal .auth-shell { padding: 0; }
  body.login--internal .auth-hero { min-height: 205px; margin-right: 0; overflow: hidden; border-radius: 0 0 22px 22px; }
  body.login--internal .auth-hero__photo { right: 0; width: 100%; }
  body.login--internal .auth-hero::after { right: 0; width: 100%; background: linear-gradient(90deg, rgba(8,22,48,.82), rgba(24,58,120,.52)); }
  body.login--internal .auth-panel { min-height: 0; margin-left: 0; padding: 10px; border-radius: 0; background: var(--aurora-paper); box-shadow: none; backdrop-filter: none; }
  body.login--internal .auth-card { border-radius: 20px; }
}
