/* ==========================================================
   Stellium Private Club · Members Login (index.php)
   Design: stellium-web/index.html (css/base.css + css/login.css)
   Carousel slides/dots are built by assets/js/modulos/stellium/app.js
   ========================================================== */

:root {
  --navy-900: #000924;
  --navy-700: #0a1c45;
  --gold-500: #b98c5b;
  --gold-600: #a97b4e;
  --gold-700: #8a6640;      /* links on white (AA contrast) */
  --gold-800: #7d5a37;      /* labels / eyebrows on white (AA contrast) */
  --ink-600: #6f675b;
  --ink-500: #5f584d;
  --line: #ebe4d7;
  --field-border: #ddd3c2;
  --white: #ffffff;

  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  color: var(--navy-900);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }

button, input { font-family: inherit; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.login {
  display: flex;
  height: 100vh;
  min-height: 760px;
  background: var(--white);
}

/* ---------- Left panel ---------- */
.login__panel {
  position: relative;
  flex: 0 0 880px;
  max-width: 64%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 60px 24px;
  overflow-y: auto;
}

.login__content { width: 100%; text-align: center; }

.login__eyebrow {
  margin: 0;
  font: 400 11px var(--font-sans);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-800);
}

.login__logo {
  height: 80px;
  width: auto;
  margin: 16px auto 0;
}

.login__rule {
  display: block;
  width: 44px; height: 1px;
  margin: 18px auto 0;
  background: var(--gold-500);
}

.login__title {
  margin: 18px 0 0;
  font: 400 25px/1.15 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.login__sub {
  max-width: 330px;
  margin: 10px auto 0;
  font: 300 13px/1.65 var(--font-sans);
  color: var(--ink-600);
}

/* ---------- Language (Eng / Esp) ---------- */
.sabio-language {
  position: absolute;
  top: 22px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 400 11px var(--font-sans);
  color: var(--gold-500);
}
.sabio-language button {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--ink-600);
  font: 400 11px var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.sabio-language button.is-active {
  color: var(--navy-900);
  font-weight: 500;
}

/* ---------- Form ---------- */
.login__form {
  max-width: 380px;
  margin: 24px auto 0;
  text-align: left;
}

.field__label {
  display: block;
  margin-top: 16px;
  font: 500 11px var(--font-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-800);
}
#sabio-login-fields > .field__label:first-child { margin-top: 0; }
.field__label + .field__input,
.field__label + .sabio-password-wrap { margin-top: 8px; }

.field__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 0;
  color: var(--navy-900);
  font: 400 14px var(--font-sans);
  transition: border-color .2s;
}
.field__input::placeholder { color: rgba(150,150,150,.75); }
.field__input:focus { outline: none; border-color: var(--gold-500); }

.sabio-password-wrap { position: relative; }
.sabio-password-wrap .field__input { padding-right: 46px; }
.sabio-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-600);
  cursor: pointer;
}
.sabio-password-toggle svg { width: 18px; height: 18px; }

.login__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 13px;
}
.login__row--start { justify-content: flex-start; }

.login__forgot {
  padding: 0;
  border: 0;
  background: none;
  font: 300 13px var(--font-sans);
  color: var(--gold-700);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.login__forgot:hover { text-decoration: underline; }

.btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--navy-900);
  color: #f4f0e9;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font: 500 12px var(--font-sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  transition: filter .2s;
}
.btn-primary:hover { filter: brightness(1.25); }

/* Forgot password panel + status messages (assets/js/modulos/login.js) */
.sabio-login-forgot,
.sabio-login-status { display: none; }
.sabio-login-forgot.is-visible { display: block; }
.sabio-login-hidden { display: none; }
.login__sub--forgot { max-width: none; margin: 0; text-align: center; }

.sabio-login-status {
  margin-top: 12px;
  font: 400 12px/1.5 var(--font-sans);
  text-align: center;
}
#wrongPassword { color: #b32828; }
#success-information { color: #2d7a35; }
#success-information.is-error { color: #b32828; }

/* Modal de espera de recuperar acceso (assets/js/modulos/login.js) */
.recover-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 18, 14, .45); }
.recover-modal.is-open { display: flex; }
.recover-modal__box { display: flex; align-items: center; gap: 14px; max-width: 420px; padding: 20px 24px; border-radius: 10px; background: #fff; color: #3c4858; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font: 400 14px/1.4 var(--font-sans); }
.recover-modal__text { margin: 0; }
.recover-modal__spinner { flex: 0 0 22px; width: 22px; height: 22px; border: 3px solid #e3dccb; border-top-color: #807451; border-radius: 50%; animation: recover-spin .8s linear infinite; }
@keyframes recover-spin { to { transform: rotate(360deg); } }
#success-information { display: block; }
#success-information:empty { display: none; }
#loginSuccess { color: #2d7a35; }

.login__sep {
  max-width: 380px;
  height: 1px;
  margin: 24px auto 0;
  border: 0;
  background: var(--line);
}

/* ---------- QR block ---------- */
.qr {
  max-width: 380px;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.qr__code {
  flex: none;
  width: 92px; height: 92px;
  padding: 7px;
  background: var(--white);
  border: 1px solid var(--gold-500);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,9,36,.08);
}
.qr__code img { width: 100%; height: 100%; }
.qr__text { flex: 1; min-width: 190px; }
.qr__text p { margin: 0; }
.qr__eyebrow {
  font: 500 10.5px var(--font-sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.qr__title {
  margin-top: 6px !important;
  font: italic 400 21px/1.2 var(--font-serif);
  color: var(--navy-900);
}
.qr__title span { color: var(--gold-600); }
.qr__body {
  margin-top: 5px !important;
  font: 300 12.5px/1.55 var(--font-sans);
  color: var(--ink-600);
}

/* ---------- Legal ---------- */
.terms {
  width: 100%;
  max-width: 470px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font: 300 10.5px/1.85 var(--font-sans);
  color: var(--ink-600);
}
.terms a { color: var(--ink-600); text-decoration: none; }
.terms a:hover { color: var(--gold-700); text-decoration: underline; }
.terms__dot { margin: 0 .45em; color: var(--gold-500); }
.terms__copy { margin: 8px 0 0; font-size: 11px; }

/* ---------- Right · carousel ---------- */
.login__media {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 0;
}

.carousel-frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #111;
}

.carousel-slides,
.carousel-slide {
  position: absolute;
  inset: 0;
}

/* Cross-fade + slow zoom ("Ken Burns"). The inactive slide resets its zoom
   only after it has faded out, so the reset is never visible. */
.carousel-slide {
  overflow: hidden;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 1.8s cubic-bezier(.4,0,.2,1), transform 0s linear 1.9s;
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1.1);
  pointer-events: auto;
  transition: opacity 1.8s cubic-bezier(.4,0,.2,1), transform 7s cubic-bezier(.25,.1,.25,1);
}
.carousel-image {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.12) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,.5) 100%);
  pointer-events: none;
}

.carousel-location {
  position: absolute;
  top: 13px; left: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: #0e0e0e;
  font: 500 10px var(--font-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}
.carousel-location svg { flex: none; }

.carousel-pills {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 40px;
  background: rgba(0,9,36,.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  font: 500 10px var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: background .25s, border-color .25s;
}
.pill:hover { background: rgba(169,123,78,.85); border-color: #fff; }
.pill__arrow { color: #d9b37d; font-size: 8px; }

.carousel-copy {
  position: absolute;
  right: 24px; bottom: 22px;
  pointer-events: none;
}
.carousel-label {
  font: 400 9px var(--font-sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #fff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(10,10,10,.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.carousel-arrow:hover { background: rgba(169,123,78,.85); border-color: #fff; }
.carousel-arrow-prev { left: 18px; }
.carousel-arrow-next { right: 18px; }

.carousel-dots {
  position: absolute;
  left: 24px; bottom: 24px;
  display: flex;
  gap: 7px;
}
.carousel-dot {
  width: 6px; height: 6px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  cursor: pointer;
  transition: width .4s cubic-bezier(.4,0,.2,1), background .4s ease;
}
.carousel-dot.is-active { width: 28px; background: var(--gold-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .login {
    flex-direction: column-reverse;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
  .login__panel {
    flex: 1;
    max-width: none;
    min-height: 0;
    justify-content: flex-start;
    padding: 36px 24px 30px;
  }
  .login__media {
    flex: none;
    height: 38vh;
    min-height: 160px;
    padding: 0;
  }
  .login__logo { height: 72px; }
  .sabio-language { position: static; align-self: flex-end; margin: -18px -6px 10px 0; }
}

@media (max-width: 560px) {
  .login__panel { padding: 22px 18px 18px; }
  .login__media { height: 32vh; min-height: 130px; }
  .login__logo { height: 64px; }
  .login__title { font-size: 22px; }
  .carousel-pills { top: auto; bottom: 46px; right: 14px; }
  .pill { padding: 8px 13px; letter-spacing: .18em; }
  .carousel-location { top: 10px; left: 10px; padding: 7px 12px; }
  .carousel-copy { display: none; }
}

@media (max-width: 400px) {
  .login__row { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
  .field__input { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-slide.is-active { transform: none; }
}
