/* ══════════════════════════════════════════════════════════════
   EXCLIVIA — LOGIN PAGE
   Full-screen BG · 50/50 split · Glassmorphism form
══════════════════════════════════════════════════════════════ */

/* ── LOGO ── */
.exc-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px; font-weight: 500;
  letter-spacing: 1px; text-decoration: none;
  line-height: 1; display: inline-block;
}
.exc-logo .l-gold  { color: #c9a84c; font-style: italic; }
.exc-logo .l-white { color: #fff; font-weight: 300; font-style: normal; }
.login-brand-name { display: block; }

/* ══ PAGE: imagen de fondo full screen ══ */
.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  cursor: none;
  background: #05040a;
}

/* Imagen de fondo full bleed */
.login-page-bg {
  position: fixed;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?w=1920&q=85&fit=crop&crop=center');
  background-size: cover;
  background-position: center;
  filter: brightness(.38) saturate(.8);
  z-index: 0;
  transform: scale(1.04); /* evita bordes al hacer hover */
}
/* overlay gradiente sobre la imagen */
.login-page-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(5,4,10,.55) 0%,
    rgba(5,4,10,.25) 45%,
    rgba(5,4,10,.72) 100%
  );
}

/* ══ SPLIT CONTAINER ══ */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════
   PANEL IZQUIERDO — Branding
══════════════════════════════ */
.login-left {
  position: relative;
  display: flex;
  overflow: hidden;
}

/* sin background propio — la imagen de fondo se ve aquí */
.login-bg-img    { display: none; } /* ocultamos el <img> individual */
.login-bg-overlay { display: none; }

/* línea separadora derecha */
.login-left::after {
  content: '';
  position: absolute;
  top: 8%; right: 0; height: 84%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201,168,76,.4) 30%,
    rgba(201,168,76,.4) 70%,
    transparent
  );
  z-index: 2;
}

.login-branding {
  position: relative; z-index: 2;
  padding: 52px 52px 52px 60px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  width: 100%; min-height: 100vh;
}

.login-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 300; font-style: italic;
  color: #fff; line-height: 1.2;
  margin-bottom: 16px;
}
.login-tagline em { color: #c9a84c; font-style: normal; }

.login-subtitle {
  font-size: 15px; line-height: 1.9;
  color: rgba(242,228,200,.5);
  margin-bottom: 28px;
  max-width: 340px;
}

.login-features { display: flex; flex-direction: column; gap: 14px; }
.login-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(242,228,200,.5);
}
.login-feature::before {
  content: '✦'; color: #c9a84c; font-size: 8px; flex-shrink: 0;
}

/* ══════════════════════════════
   PANEL DERECHO — Glassmorphism
══════════════════════════════ */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 60px;
  position: relative;
  overflow-y: auto;
  min-height: 100vh;
  background: rgba(5, 4, 10, 0.52);
  backdrop-filter: blur(32px) saturate(160%) brightness(0.85);
  -webkit-backdrop-filter: blur(32px) saturate(160%) brightness(0.85);
  border-left: 1px solid rgba(201,168,76,.15);
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,.04),
    -20px 0 60px rgba(0,0,0,.3);
}

/* contenido del formulario centrado y con ancho máximo */
.login-right-inner {
  width: 100%;
  max-width: 400px;
}

.login-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 400; color: #fff;
  margin-bottom: 10px; letter-spacing: -.5px;
  line-height: 1.05;
}
.login-sub {
  font-size: 15px; color: rgba(92,84,101,.9);
  letter-spacing: .5px; margin-bottom: 36px;
}

/* ── Tabs ── */
.login-tabs {
  display: flex; margin-bottom: 30px;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.login-tab {
  flex: 1; padding: 13px 8px;
  background: none; border: none;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(92,84,101,.9); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .3s;
  font-family: 'DM Sans', sans-serif;
}
.login-tab.active {
  color: #c9a84c;
  border-bottom-color: #c9a84c;
}

/* ── Alert ── */
.alert {
  padding: 12px 16px; margin-bottom: 18px;
  font-size: 11px; border: 1px solid transparent;
}
.alert-danger  { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.28); color: #fca5a5; }
.alert-success { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.28); color: #86efac; }

/* ── Form groups ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: #c9a84c; margin-bottom: 9px; font-weight: 400;
}
.form-group label i { display: none; }

/* ── INPUTS OSCUROS — cero blanco ── */
.form-control {
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(201,168,76,.2) !important;
  border-radius: 0 !important;
  padding: 15px 18px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  color: #f2e4c8 !important;
  outline: none !important;
  transition: background .25s, border-color .25s, box-shadow .25s !important;
  box-shadow: none !important;
  caret-color: #c9a84c;
  /* glass sutil en los inputs */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form-control::placeholder {
  color: rgba(120,108,130,.45) !important;
  font-size: 14px;
}
.form-control:focus {
  background: rgba(201,168,76,.08) !important;
  border-color: rgba(201,168,76,.55) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.08) !important;
}

/* Autofill override (Chrome/Safari) */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100px rgba(14,12,20,.95) inset !important;
  -webkit-text-fill-color: #f2e4c8 !important;
  border-color: rgba(201,168,76,.2) !important;
  caret-color: #c9a84c !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

select.form-control {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
}
select.form-control option { background: #0e0c14; color: #f2e4c8; }

/* ── Password toggle ── */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 52px !important; }
.password-toggle {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(92,84,101,.8);
  cursor: pointer; transition: color .3s; padding: 0; line-height: 1;
}
.password-toggle:hover { color: #c9a84c; }
.password-toggle i { font-size: 15px; }

/* ── Options row ── */
.form-options {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.remember-me {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(92,84,101,.9); cursor: pointer;
  user-select: none;
}
.remember-me input[type="checkbox"] { display: none; }
.remember-me .chk {
  width: 14px; height: 14px; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,.28);
  background: rgba(201,168,76,.05);
  display: inline-block; transition: all .2s;
}
.forgot-link {
  font-size: 12px; color: #c9a84c;
  text-decoration: none; transition: opacity .3s;
}
.forgot-link:hover { opacity: .65; }

/* ── Botón principal ── */
.btn-login,
.btn.btn-primary.btn-login {
  width: 100%;
  background: #c9a84c; color: #05040a;
  border: none; padding: 17px 20px;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  font-weight: 500; cursor: pointer;
  transition: background .3s, box-shadow .3s;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  border-radius: 0;
}
.btn-login::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-110%); transition: transform .55s;
}
.btn-login:hover::after { transform: translateX(110%); }
.btn-login:hover {
  background: #e2c06a;
  box-shadow: 0 0 40px rgba(201,168,76,.35);
}
.btn-login:disabled { opacity: .5; cursor: not-allowed; }
.btn-login .btn-loader { display: none; }
.btn-login.loading .btn-text   { display: none; }
.btn-login.loading .btn-loader { display: flex; align-items: center; gap: 8px; }

/* ── Botón secundario ── */
.btn-secondary-login {
  width: 100%; padding: 15px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(242,228,200,.12);
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(242,228,200,.45); cursor: pointer; transition: all .3s;
  font-family: 'DM Sans', sans-serif;
  margin-top: 10px; border-radius: 0;
}
.btn-secondary-login:hover {
  color: #c9a84c;
  border-color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.06);
}

/* ── Divider ── */
.login-divider {
  text-align: center; margin: 24px 0;
  position: relative; font-size: 12px;
  color: rgba(92,84,101,.8);
}
.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 28px); height: 1px;
  background: rgba(201,168,76,.1);
}
.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }

/* ── MegacityID badge ── */
.megacity-badge {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px;
  background: rgba(201,168,76,.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,.2);
  font-size: 15px; letter-spacing: 1px; color: #f2e4c8;
}
.megacity-badge i      { color: #c9a84c; font-size: 16px; }
.megacity-badge strong { color: #c9a84c; }

/* ── Footer links ── */
.login-footer {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: rgba(92,84,101,.8);
}
.login-footer a { color: #c9a84c; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

.login-back {
  text-align: center; margin-top: 16px;
}
.login-back a {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(242,228,200,.28); text-decoration: none;
  transition: color .3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.login-back a:hover { color: #c9a84c; }

/* ── Spinner ── */
.spinner { width: 18px; height: 18px; animation: exc-spin 1s linear infinite; }
@keyframes exc-spin { to { transform: rotate(360deg); } }
.spinner .path {
  stroke: #05040a; stroke-linecap: round;
  stroke-dasharray: 90,150; stroke-dashoffset: -35;
  animation: exc-dash 1.5s ease-in-out infinite;
}
@keyframes exc-dash {
  0%   { stroke-dasharray: 1,150; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90,150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90,150; stroke-dashoffset: -124; }
}

/* ── Cursor ── */
.exc-cursor {
  width: 8px; height: 8px; background: #c9a84c; border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  mix-blend-mode: screen; transition: transform .14s;
}
.exc-cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,.35); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: left .28s, top .28s, border-color .3s, transform .3s;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 860px) {
  .login-container { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right {
    padding: 48px 32px;
    border-left: none;
    background: rgba(5,4,10,.72);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
  }
  .login-right-inner { max-width: 100%; }
}
@media (max-width: 480px) {
  .login-right { padding: 40px 24px; }
}