/* ══════════════════════════════════════════════════════════════
   EXCLIVIA — REGISTER PAGE CSS
   Mismo sistema visual que login · Dark gold · Glass 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; }

/* ── Cursor ── */
.exc-cursor {
  width: 8px; height: 8px; background: #c9a84c; border-radius: 50%;
  position: fixed; 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; pointer-events: none; z-index: 9998;
  transition: left .28s, top .28s, border-color .3s, transform .3s;
}

/* ── PAGE ── */
.register-page {
  min-height: 100vh; width: 100%;
  display: flex; align-items: stretch;
  position: relative; overflow: hidden;
  cursor: none; background: #05040a;
}

.reg-page-bg {
  position: fixed; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1528360983277-13d401cdc186?w=1920&q=85&fit=crop&crop=center');
  background-size: cover; background-position: center;
  filter: brightness(.32) saturate(.75);
  z-index: 0; transform: scale(1.04);
}
.reg-page-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(5,4,10,.6) 0%,
    rgba(5,4,10,.2) 50%,
    rgba(5,4,10,.75) 100%
  );
}

/* ── SPLIT ── */
.reg-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%; min-height: 100vh;
  position: relative; z-index: 1;
}

/* ══ PANEL IZQUIERDO ══ */
.reg-left { position: relative; display: flex; }

.reg-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;
}

.reg-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;
}

.reg-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;
}
.reg-tagline em { color: #c9a84c; font-style: normal; }

.reg-subtitle {
  font-size: 15px; line-height: 1.9;
  color: rgba(242,228,200,.45);
  max-width: 340px; margin-bottom: 32px;
}

.reg-features { display: flex; flex-direction: column; gap: 20px; }
.reg-feature  { display: flex; align-items: flex-start; gap: 14px; }
.rf-icon      { color: #c9a84c; font-size: 10px; margin-top: 4px; flex-shrink: 0; }
.rf-title     { font-size: 14px; color: rgba(242,228,200,.85); margin-bottom: 3px; font-weight: 400; }
.rf-desc      { font-size: 12px; color: rgba(242,228,200,.38); line-height: 1.5; }

/* ══ PANEL DERECHO — Glass ══ */
.reg-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,.52);
  backdrop-filter: blur(32px) saturate(160%) brightness(.85);
  -webkit-backdrop-filter: blur(32px) saturate(160%) brightness(.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);
}

.reg-right-inner { width: 100%; max-width: 420px; }

.reg-header { margin-bottom: 32px; }

.reg-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400; color: #fff;
  margin-bottom: 8px; letter-spacing: -.5px; line-height: 1.05;
}
.reg-sub {
  font-size: 15px; color: rgba(92,84,101,.9); letter-spacing: .5px;
}

/* ── Alert ── */
.alert {
  padding: 13px 16px; margin-bottom: 18px;
  font-size: 13px; 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:not(.terms-label) {
  display: block;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: #c9a84c; margin-bottom: 9px; font-weight: 400;
}

/* ── Bloque contraseñas juntas ── */
.pwd-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.pwd-block .form-group {
  margin-bottom: 0;
}
/* línea divisora entre los dos campos */
.pwd-block .form-group + .form-group {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(201,168,76,.1);
}
.pwd-block .form-group + .form-group > label {
  margin-bottom: 8px;
}

/* ── Select wrapper ── */
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #c9a84c;
  pointer-events: none;
}

/* ── Inputs ── */
.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;
  backdrop-filter: blur(8px); caret-color: #c9a84c;
}
.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;
}
/* valid state */
.form-control.is-valid   { border-color: rgba(74,222,128,.5) !important; }
.form-control.is-invalid { border-color: rgba(239,68,68,.5) !important; }

/* autofill override */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px rgba(14,12,20,.95) inset !important;
  -webkit-text-fill-color: #f2e4c8 !important;
  transition: background-color 9999s 0s !important;
}

select.form-control { cursor: pointer !important; padding-right: 40px !important; }
select.form-control option { background: #0e0c14; color: #f2e4c8; }

/* ── Field messages ── */
.field-error {
  display: block; font-size: 11px; color: #f87171;
  margin-top: 5px;
}
.field-ok {
  display: block; font-size: 11px; color: #4ade80;
  margin-top: 6px;
}

/* ── Password wrapper ── */
.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; }

/* ══ STRENGTH METER ══ */
.strength-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-top: 7px;
}
.strength-bar {
  flex: 1; height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 2px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0%;
  border-radius: 2px;
  transition: width .4s ease, background .4s ease;
}
.strength-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(92,84,101,.8); white-space: nowrap;
  min-width: 76px; text-align: right;
  transition: color .4s;
}

/* Colores por nivel */
.strength-fill.lvl-1 { background: #ef4444; }
.strength-fill.lvl-2 { background: #f97316; }
.strength-fill.lvl-3 { background: #eab308; }
.strength-fill.lvl-4 { background: #22c55e; }
.strength-fill.lvl-5 { background: #4ade80; }

.strength-label.lvl-1 { color: #ef4444; }
.strength-label.lvl-2 { color: #f97316; }
.strength-label.lvl-3 { color: #eab308; }
.strength-label.lvl-4 { color: #22c55e; }
.strength-label.lvl-5 { color: #4ade80; }

.strength-tips {
  font-size: 11px; color: rgba(92,84,101,.65);
  margin-top: 4px; line-height: 1.6;
  min-height: 0; /* sin altura mínima fija */
}

/* ── Terms ── */
.terms-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; user-select: none;
}
.terms-label input[type="checkbox"] { display: none; }
.terms-label .chk {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
  border: 1px solid rgba(201,168,76,.28);
  background: rgba(201,168,76,.05);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.terms-label input:checked + .chk {
  background: rgba(201,168,76,.25); border-color: rgba(201,168,76,.7);
}
.terms-label input:checked + .chk::after {
  content: '✓'; color: #c9a84c; font-size: 10px; line-height: 1;
}
.terms-text {
  font-size: 12px; color: rgba(92,84,101,.9); line-height: 1.7;
}
.terms-text a {
  color: #c9a84c; text-decoration: none;
}
.terms-text a:hover { text-decoration: underline; }

/* ── Botón principal ── */
.btn-register {
  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, opacity .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-register::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-110%); transition: transform .55s;
}
.btn-register:not(:disabled):hover::after { transform: translateX(110%); }
.btn-register:not(:disabled):hover {
  background: #e2c06a;
  box-shadow: 0 0 40px rgba(201,168,76,.35);
}
.btn-register:disabled {
  opacity: .4; cursor: not-allowed;
  background: #c9a84c;
}
.btn-register .btn-loader { display: none; }
.btn-register.loading .btn-text   { display: none; }
.btn-register.loading .btn-loader { display: flex; align-items: center; gap: 8px; }

/* ── Botón secundario ── */
.btn-secondary-reg {
  display: flex; align-items: center; justify-content: center;
  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; border-radius: 0;
  text-decoration: none;
}
.btn-secondary-reg:hover {
  color: #c9a84c; border-color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.06);
}

/* ── Divider ── */
.reg-divider {
  text-align: center; margin: 24px 0;
  position: relative; font-size: 12px; color: rgba(92,84,101,.8);
}
.reg-divider::before, .reg-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 60px); height: 1px;
  background: rgba(201,168,76,.1);
}
.reg-divider::before { left: 0; }
.reg-divider::after  { right: 0; }

/* ── Back ── */
.reg-back { text-align: center; margin-top: 18px; }
.reg-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;
}
.reg-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; }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 860px) {
  .reg-container { grid-template-columns: 1fr; }
  .reg-left { display: none; }
  .reg-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%);
  }
  .reg-right-inner { max-width: 100%; }
}
@media (max-width: 480px) {
  .reg-right { padding: 40px 24px; }
}