/* ─── Auth Layout ────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ─── Left Panel (Branding) ──────────────────────────────── */
.auth-panel {
  position: relative;
  background: var(--clr-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201,168,76,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.auth-panel::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--clr-accent), transparent);
  opacity: 0.3;
}

/* Grid decorativo */
.panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/*LOGO HEADER*/
.logo-container {
    display: flex;
    align-items: center;
}

.logo-main-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #c7bdb9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-main-text2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--teal-dark);
    letter-spacing: 2px;
}

.logo-sub-text {
    font-weight: 300;
    font-size: 0.8rem;
    color: #c7bdb9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-img {
    max-height: 60px;
    width: auto;
    margin-right: 15px;
}
/**/

.panel-content {
  display: flex;
  flex-direction: column;
  
  /* Esto lo centra VERTICALMENTE (lo empuja hacia el medio de la caja) */
  justify-content: center; 
  
  /* Esto lo mantiene alineado a la IZQUIERDA */
  align-items: flex-start; 
  text-align: left; 
  
  /* Es vital para que el centrado vertical funcione */
  height: 100%; 
}

.panel-tagline {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--clr-text);
}
.panel-tagline em {
  font-style: italic;
  color: var(--clr-accent);
}

.panel-desc {
  font-size: 0.95rem;
  color: var(--clr-muted);
  max-width: 340px;
  line-height: 1.7;
  margin: 0; /* Aseguramos que no tenga márgenes que lo desfasen */
}


/* ─── Right Panel (Form) ─────────────────────────────────── */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--clr-bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-header { margin-bottom: 36px; }
.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-header p {
  color: var(--clr-muted);
  font-size: 0.92rem;
}

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

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-option { position: relative; }
.role-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.role-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-muted);
  text-transform: none;
  letter-spacing: 0;
}
.role-option label .role-icon { font-size: 1.4rem; }
.role-option input:checked + label {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(201,168,76,0.06);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.role-option label:hover { border-color: var(--clr-accent-dim); color: var(--clr-text); }

/* Two columns */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--clr-muted);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--clr-accent);
  cursor: pointer;
}

/* Password wrapper */
.input-wrapper { position: relative; }
.input-wrapper input { padding-right: 44px; }
.toggle-password {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-muted);
  font-size: 1rem;
  transition: color var(--transition);
  padding: 4px;
}
.toggle-password:hover { color: var(--clr-text); }

/* Password strength */
.password-strength { display: flex; gap: 4px; margin-top: 6px; }
.strength-bar {
  flex: 1; height: 3px;
  border-radius: 2px;
  background: var(--clr-border);
  transition: background 0.3s;
}
.strength-bar.weak   { background: var(--clr-error); }
.strength-bar.medium { background: #e0a84c; }
.strength-bar.strong { background: var(--clr-success); }

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--clr-muted);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-side { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-header h1 { font-size: 1.6rem; }
}

/* ─── Password Requirements Checklist ─── */
.password-requirements {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.password-requirements li {
  font-size: 0.75rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.password-requirements li span {
  font-size: 0.6rem;
  display: inline-block;
  width: 12px;
  text-align: center;
}

/* Clase que se activa cuando la condición se cumple */
.password-requirements li.met {
  color: var(--clr-success); /* Usa tu verde de éxito */
}

/* ─── Error de Términos y Condiciones Inline ─── */
#terms-error {
  display: none; /* Oculto por defecto */
  color: var(--clr-error); /* Usa tu variable de color rojo */
  font-size: 0.8rem;
  font-weight: 600;
}

#terms-error.show {
  display: block;
  animation: shakeError 0.4s ease-in-out;
}

/* Animación de temblor para llamar la atención */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}