/* Pantallas de autenticación (login, recuperar/restablecer contraseña).
   Replica el layout de docs/ui/mockups/UI-001-login.png: panel de marketing
   a la izquierda (oculto en móvil) + tarjeta de acceso a la derecha. */

.auth-screen {
  display: flex;
  min-height: calc(100vh - 2rem);
  margin-inline: -1.25rem;
  overflow: hidden;
}

.auth-hero {
  display: none;
  flex: 1 1 55%;
  position: relative;
  padding: 3rem 3.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 117, 109, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 79, 84, 0.16), transparent 45%),
    var(--color-bg-page-subtle);
  overflow: hidden;
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.auth-hero-brand img,
.auth-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.auth-hero-brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--color-text-main);
}

.auth-hero-brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.auth-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 22ch;
  color: var(--color-text-main);
}

.auth-hero-lead {
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.auth-feature-list {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.auth-feature-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 117, 109, 0.12);
  color: var(--color-brand-primary);
  font-size: 1.1rem;
}

.auth-feature-item strong {
  display: block;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.auth-feature-item span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.auth-verticals {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.auth-verticals-label {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.auth-verticals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.auth-vertical-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.auth-vertical-pill i {
  font-size: 1.1rem;
  color: var(--color-brand-primary);
}

.auth-stat-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
  font-size: 0.8rem;
}

.auth-stat-chip i {
  color: var(--color-brand-primary);
  font-size: 1.2rem;
}

.auth-stat-chip strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.auth-stat-chip--1 { top: 8%; right: 6%; }
.auth-stat-chip--2 { top: 42%; right: -2%; }
.auth-stat-chip--3 { bottom: 8%; right: 10%; }

.auth-panel {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-card-brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.auth-card-brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
  color: var(--color-text-main);
}

.auth-card-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-btn-gradient {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-secondary));
  transition: filter 0.15s ease, transform 0.15s ease;
}

.auth-btn-gradient:hover {
  filter: brightness(1.05);
}

.auth-btn-gradient:active {
  transform: translateY(1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-main);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.auth-oauth-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-card form .d-flex .form-check {
  margin-bottom: 0;
}

.auth-card-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

.auth-btn-outline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-main);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 500;
}

.auth-result-panel {
  text-align: center;
}

.auth-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}

.auth-result-icon--success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
}

.auth-result-icon--danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
}

.auth-result-panel p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Medidor de fortaleza de contraseña (solo orientativo: el backend
   únicamente exige 8 caracteres, ver password-strength.js) */
.password-strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 0.4rem;
}

.password-strength-bar span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}

.password-strength-bar.is-weak span:nth-child(1) { background: var(--color-danger); }
.password-strength-bar.is-medium span:nth-child(1),
.password-strength-bar.is-medium span:nth-child(2) { background: var(--color-warning); }
.password-strength-bar.is-strong span { background: var(--color-success); }

.password-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: inline-block;
}

.password-strength-checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.password-strength-checklist li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0;
}

.password-strength-checklist li i {
  color: var(--color-border-strong);
}

.password-strength-checklist li.is-met {
  color: var(--color-text-main);
}

.password-strength-checklist li.is-met i {
  color: var(--color-success);
}

.password-confirm-mismatch {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
  display: none;
}

.password-confirm-mismatch.is-visible {
  display: block;
}

@media (min-width: 992px) {
  .auth-hero {
    display: block;
  }
}
