/* ── Velvet Body Spa — Auth Styles ───────────────────────── */

:root {
  --gold:    #c9a96e;
  --gold-dk: #b8935a;
  --dark:    #1a1a1a;
  --cream:   #f9f5f0;
  --border:  #e8e0d5;
  --text:    #3a3a3a;
  --muted:   #888;
  --error:   #c0392b;
  --success: #27ae60;
  --radius:  14px;
}

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

/* ── Auth wrapper split-screen ───────────────────────────── */
body.auth-page {
  min-height: 100vh;
  display: flex;
  font-family: 'Georgia', serif;
  background: var(--cream);
}

/* Panel izquierdo — imagen ─────────────────────────────── */
.auth-image-panel {
  display: none; /* oculto en móvil */
  position: relative;
  width: 48%;
  flex-shrink: 0;
  overflow: hidden;
}

.auth-image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,26,26,.18) 0%,
    rgba(26,26,26,.55) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px;
}

.auth-image-quote {
  color: rgba(255,255,255,.92);
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: .3px;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.auth-image-brand {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-style: normal;
  font-family: sans-serif;
}

/* Panel derecho — formulario ───────────────────────────── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

/* ── Container (dentro del panel derecho) ────────────────── */
.auth-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Logo ────────────────────────────────────────────────── */
.auth-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.auth-logo {
  height: 60px;
  width: auto;
}

.auth-logo-text {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dark);
  font-family: 'Georgia', serif;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 40px rgba(0,0,0,.08);
  padding: 40px 40px 36px;
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 24px; }
}

/* ── Titles ──────────────────────────────────────────────── */
.auth-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: .5px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
  font-family: sans-serif;
  line-height: 1.5;
}

/* ── Alerts ──────────────────────────────────────────────── */
.auth-alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert p { margin: 0; }
.auth-alert p + p { margin-top: 4px; }
.auth-alert a { color: inherit; text-decoration: underline; }

.auth-alert-error   { background: #fdf0ef; color: var(--error);   border: 1px solid #f5c6c3; }
.auth-alert-success { background: #edfaf3; color: var(--success); border: 1px solid #b7eacb; }
.auth-alert-info    { background: #fdf8f0; color: #8a6d3b;        border: 1px solid #f0d9a0; }

/* ── Form ────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-field label {
  font-size: 13px;
  font-family: sans-serif;
  color: var(--text);
  letter-spacing: .3px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: sans-serif;
  color: var(--dark);
  background: #fdfcfb;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

.auth-field input::placeholder { color: #bbb; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-auth {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
  margin-top: 6px;
  letter-spacing: .5px;
}

.btn-auth:active { transform: scale(.98); }

.btn-auth-primary {
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.btn-auth-primary:hover { background: #2d2d2d; }

.btn-auth-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
  text-align: center;
}

.btn-auth-outline:hover { background: var(--cream); }

.btn-auth-whatsapp {
  background: #25d366;
  color: #fff;
  text-align: center;
}

.btn-auth-whatsapp:hover { background: #1ebe5d; }

/* ── Footer link ─────────────────────────────────────────── */
.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  font-family: sans-serif;
  color: var(--muted);
}

.auth-footer-link a { color: var(--gold); text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ── Success icon ────────────────────────────────────────── */
.auth-success-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--success);
}

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dashboard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Georgia', serif;
}

.dashboard-cta { text-align: center; }

/* ── Profile row ─────────────────────────────────────────── */
.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: sans-serif;
  color: var(--text);
  background: #fdfcfb;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.auth-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 860px) {
  .auth-image-panel { display: block; }
  .auth-form-panel  { padding: 48px 56px; }
}

@media (max-width: 860px) {
  body.auth-page {
    align-items: flex-start;
    background:
      linear-gradient(rgba(249,245,240,.88), rgba(249,245,240,.88)),
      url('../assets/img/auth-panel.jpg') center/cover no-repeat fixed;
  }
  .auth-form-panel {
    width: 100%;
    min-height: 100vh;
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .profile-row { grid-template-columns: 1fr; }
}
