/* ═══════════════════════════════════════════════
   registro.css — ElectroPrecios
   Estilos exclusivos de la página de registro
   ═══════════════════════════════════════════════ */

body {
  display: flex;
  flex-direction: column;
}

nav {
  position: relative;
}

/* ── LAYOUT PRINCIPAL ── */
.main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative; z-index: 1;
}
.register-wrap {
  width: 100%; max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

/* ── PANEL IZQUIERDO ── */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--volt-dim); border: 1px solid var(--volt-border);
  color: var(--volt); padding: .3rem .85rem;
  border-radius: 100px; font-size: .7rem; font-weight: 600;
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: background .3s, border-color .3s, color .3s;
}
.badge::before {
  content: ''; width: 5px; height: 5px;
  background: var(--volt); border-radius: 50%;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
  transition: color .3s;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--volt), #80ff40);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] h1 em {
  background: linear-gradient(135deg, #5a8800, #3d6600);
  -webkit-background-clip: text; background-clip: text;
}
.left-desc {
  color: var(--muted); font-weight: 300;
  line-height: 1.7; font-size: .95rem;
  margin-bottom: 2rem;
  max-width: 400px;
  transition: color .3s;
}
.features { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.features li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .88rem; color: var(--text-item, #c0cde0);
  transition: color .3s;
}
.feat-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--volt-dim); border: 1px solid var(--volt-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0;
  transition: background .3s, border-color .3s;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  animation: slideIn .5s ease;
  transition: background .3s, border-color .3s;
}
.form-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.15rem;
  margin-bottom: .25rem;
  color: var(--text); transition: color .3s;
}
.form-sub { color: var(--muted); font-size: .82rem; margin-bottom: 1.75rem; transition: color .3s; }

/* ── CAMPOS ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 500;
  color: var(--muted); margin-bottom: .4rem;
  font-family: 'DM Mono', monospace;
  transition: color .3s;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 9px;
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s, background .2s, color .3s;
  appearance: none;
}
.form-group input::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--volt-border);
  background: var(--bg-input-f);
}
.form-group select option { background: var(--navy-mid, #0f2042); color: var(--text); }
.form-group .select-wrap { position: relative; }
.form-group .select-wrap::after {
  content: '▾'; position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.input-error { border-color: rgba(255,77,109,0.5) !important; }
[data-theme="light"] .input-error { border-color: rgba(217,32,62,0.4) !important; }
.field-error {
  font-size: .72rem; color: var(--danger); margin-top: .3rem; display: none;
  transition: color .3s;
}

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0; color: var(--muted); font-size: .75rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── BOTÓN ── */
.btn-submit {
  width: 100%; padding: .85rem;
  background: var(--volt); color: var(--navy);
  border: none; border-radius: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-submit:hover {
  background: #d4ff26;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--shadow-volt);
}
[data-theme="light"] .btn-submit { background: var(--volt); color: #fff; }
[data-theme="light"] .btn-submit:hover { background: #4a7000; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── ALERTS ── */
.alert {
  border-radius: 9px; padding: .75rem 1rem;
  font-size: .83rem; margin-bottom: 1rem;
  display: none; align-items: flex-start; gap: .6rem;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-error  { background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.3); color: #ff8fa3; }
.alert-success{ background: rgba(0,230,138,0.1);  border: 1px solid rgba(0,230,138,0.3);  color: var(--success); }
[data-theme="light"] .alert-error  { background: rgba(217,32,62,0.08); color: var(--danger); }
[data-theme="light"] .alert-success{ background: rgba(0,138,82,0.08); color: var(--success); }

/* ── ESTADO ÉXITO ── */
.success-state {
  text-align: center; display: none;
  padding: 1rem 0;
}
.success-icon {
  width: 56px; height: 56px; background: rgba(0,230,138,0.12);
  border: 1px solid rgba(0,230,138,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.5rem;
}
[data-theme="light"] .success-icon {
  background: rgba(0,138,82,0.10);
  border-color: rgba(0,138,82,0.25);
}
.success-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--text); transition: color .3s;
}
.success-sub { color: var(--muted); font-size: .85rem; line-height: 1.5; transition: color .3s; }

/* ── SPINNER PEQUEÑO ── */
.spinner-sm {
  width: 16px; height: 16px;
  border: 2px solid rgba(10,22,40,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── FOOTER ── */
footer {
  margin-top: 0;
  padding: 1.25rem 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .register-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .left-panel { text-align: center; }
  .left-desc { margin-left: auto; margin-right: auto; }
  .features { align-items: center; }
}
