/* ─── Variables — Paleta Cortinas Juan ───────────────────────── */
:root {
  --lp-burgundy:      #7b1535;
  --lp-burgundy-dark: #5a0f24;
  --lp-burgundy-mid:  #8e1a3c;
  --lp-cream:         #f4ede3;
  --lp-cream-dark:    #ede4d8;
  --lp-text-primary:  #1a0a0d;
  --lp-text-secondary:#6b5a5e;
  --lp-text-muted:    #a0908a;
  --lp-border:        #ddd4c8;
  --lp-error-bg:      #fef2f2;
  --lp-error-text:    #b91c1c;
  --lp-error-border:  #fecaca;
  --lp-serif:         'Cormorant Garamond', Georgia, serif;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Body ───────────────────────────────────────────────────── */
.lp-body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--lp-cream);
  color: var(--lp-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ─── Grid ───────────────────────────────────────────────────── */
.lp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ─── Panel de marca ─────────────────────────────────────────── */
.lp-brand {
  background: linear-gradient(155deg, var(--lp-burgundy-dark) 0%, var(--lp-burgundy) 55%, var(--lp-burgundy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.lp-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.lp-brand__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

/* Wordmark JVAN */
.lp-brand__wordmark {
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 1rem;
}

/* Tagline en serif italic — como en la web */
.lp-brand__tagline {
  font-family: var(--lp-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

/* Líneas decorativas verticales que evocan cortinas */
.lp-brand__deco {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 3rem;
}

.lp-brand__deco span {
  display: block;
  width: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.lp-brand__deco span:nth-child(1) { height: 36px; margin-top: 6px; }
.lp-brand__deco span:nth-child(2) { height: 52px; }
.lp-brand__deco span:nth-child(3) { height: 44px; margin-top: 4px; }
.lp-brand__deco span:nth-child(4) { height: 52px; }
.lp-brand__deco span:nth-child(5) { height: 40px; margin-top: 8px; }

/* ─── Panel formulario ───────────────────────────────────────── */
.lp-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--lp-cream);
}

.lp-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  box-shadow: 0 20px 60px rgba(90, 15, 36, 0.07);
  padding: 2.5rem;
}

/* ─── Cabecera ────────────────────────────────────────────────── */
.lp-card__header { margin-bottom: 2rem; }

.lp-card__title {
  font-family: var(--lp-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--lp-text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.lp-card__subtitle {
  font-size: 0.875rem;
  color: var(--lp-text-secondary);
}

/* ─── Form ───────────────────────────────────────────────────── */
.lp-form { display: flex; flex-direction: column; gap: 1.25rem; }

.lp-form__field { display: flex; flex-direction: column; gap: 0.4rem; }

.lp-form__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-text-primary);
}

.lp-form__input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--lp-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--lp-text-primary);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.lp-form__input::placeholder { color: var(--lp-text-muted); }

.lp-form__input:focus {
  border-color: var(--lp-burgundy);
  box-shadow: 0 0 0 3px rgba(123, 21, 53, 0.1);
}

/* Input con botón de ojo */
.lp-form__input-wrap { position: relative; }
.lp-form__input-wrap .lp-form__input { padding-right: 2.75rem; }

.lp-form__toggle-pass {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lp-text-muted);
  padding: 0.15rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.lp-form__toggle-pass:hover { color: var(--lp-burgundy); }

.lp-icon { width: 18px; height: 18px; display: block; }

/* ─── Error ──────────────────────────────────────────────────── */
.lp-form__error {
  padding: 0.65rem 0.9rem;
  background: var(--lp-error-bg);
  border: 1px solid var(--lp-error-border);
  border-radius: 8px;
  font-size: 0.825rem;
  color: var(--lp-error-text);
  line-height: 1.4;
}

/* ─── Botón ──────────────────────────────────────────────────── */
.lp-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--lp-burgundy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(123, 21, 53, 0.28);
  font-family: inherit;
  margin-top: 0.25rem;
}

.lp-btn:hover:not(:disabled) {
  background: var(--lp-burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123, 21, 53, 0.35);
}
.lp-btn:active:not(:disabled) { transform: translateY(0); }
.lp-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.lp-btn__spinner { display: flex; align-items: center; }
.lp-btn__spinner svg {
  width: 16px; height: 16px;
  animation: lp-spin 0.8s linear infinite;
}
@keyframes lp-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lp-grid { grid-template-columns: 1fr; }

  .lp-brand { padding: 2rem 1.5rem; }

  .lp-brand__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
  }

  .lp-brand__wordmark { font-size: 2.5rem; margin-bottom: 0; }
  .lp-brand__deco { display: none; }
  .lp-brand__tagline { font-size: 1rem; }

  .lp-panel { padding: 2rem 1.25rem; align-items: flex-start; }
  .lp-card { max-width: 100%; box-shadow: none; border: none; background: transparent; padding: 0; }
}

@media (max-width: 480px) {
  .lp-brand { padding: 1.5rem 1rem; }
  .lp-panel { padding: 1.5rem 1rem; }
  .lp-card__title { font-size: 1.5rem; }
}
