body {
  background: var(--lb-papel);
}

.auth-page,
.recover-wrap {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}

.auth-shell {
  border-radius: 6px;
  overflow: hidden;
  background: var(--lb-blanco);
  border: 1px solid var(--lb-borde);
}

.auth-muted {
  color: #6b6560;
}

.auth-page .form-label,
.recover-wrap .form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--lb-tinta);
}

.auth-page .form-control,
.recover-wrap .form-control {
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid #c5c0b6;
  transition: border-color 0.15s;
}

.auth-page .form-control:focus,
.recover-wrap .form-control:focus {
  border-color: var(--lb-azul);
  border-width: 1px;
  box-shadow: none;
  transform: none;
}

.auth-page .input-group:focus-within,
.recover-wrap .input-group:focus-within {
  box-shadow: 0 0 0 2px var(--lb-azul);
  border-radius: 6px;
}

.auth-page .input-group:focus-within .input-group-text,
.auth-page .input-group:focus-within .form-control,
.auth-page .input-group:focus-within .btn,
.recover-wrap .input-group:focus-within .input-group-text,
.recover-wrap .input-group:focus-within .form-control,
.recover-wrap .input-group:focus-within .btn {
  border-color: var(--lb-azul);
}

.auth-page .input-group-text,
.recover-wrap .input-group-text {
  border-radius: 6px 0 0 6px;
  background: #fff;
  border: 1px solid #c5c0b6;
  border-right: 0;
}

.auth-page .input-group .form-control,
.recover-wrap .input-group .form-control {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.auth-page .input-group .btn,
.recover-wrap .input-group .btn {
  border-radius: 0 6px 6px 0;
  border: 1px solid #c5c0b6;
  border-left: 0;
}

.auth-input-trailing {
  border-left: 0 !important;
  border-radius: 0 6px 6px 0 !important;
}

.auth-page .btn-primary,
.recover-wrap .btn-primary {
  border-radius: 4px;
  padding: 12px 14px;
  font-weight: 600;
  background: var(--lb-azul);
  border-color: var(--lb-azul);
  box-shadow: none;
  transition: background-color 0.15s;
}

.auth-page .btn-primary:hover,
.recover-wrap .btn-primary:hover {
  background: var(--lb-azul-hover);
  border-color: var(--lb-azul-hover);
  transform: none;
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: #94a3b8;
  font-size: 0.85rem;
}

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

.small-link {
  color: var(--lb-azul);
  text-decoration: none;
}

.small-link:hover {
  color: var(--lb-azul-hover);
  text-decoration: underline;
}

.auth-radius-sm {
  border-radius: 6px;
}

.auth-title {
  font:
    600 3.5rem/1.15 "Gelasio",
    "Fraunces",
    Georgia,
    serif;
  color: var(--lb-terracota);
  margin-bottom: 4px;
}

.auth-form-col {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.auth-signup {
  text-align: center;
}

.auth-image-col {
  padding: 0;
  background: var(--lb-papel-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-image-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lb-azul);
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

.auth-image-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 60px 60px;
  color: #fff;
  font-family: "Gelasio", "Fraunces", Georgia, serif;
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.auth-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-after-form {
  color: #6b6560;
}

.recover-container {
  max-width: 560px;
}

.fadeUp {
  animation: auth-fade-up 0.65s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.d1 {
  animation-delay: 0.05s;
}
.d2 {
  animation-delay: 0.12s;
}
.d3 {
  animation-delay: 0.18s;
}
.d4 {
  animation-delay: 0.25s;
}

.shake {
  animation: auth-shake 0.35s ease both;
}

@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fadeUp,
  .shake {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .auth-row {
    flex-direction: column;
  }
  .auth-form-col,
  .auth-image-col {
    padding: 24px;
  }
  .auth-image-col {
    display: none;
  }
}

/* ── Design System: Accent bar ── */
.auth-page .lb-accent-bar,
.recover-wrap .lb-accent-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--lb-terracota);
  border-radius: 1.5px;
}

/* ── Design System: Custom security badge ── */
.lb-badge-security {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--lb-papel-oscuro);
  border: 1px solid var(--lb-borde);
  color: var(--lb-terracota);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Input-group action buttons (clear, toggle) ── */
.auth-input-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 0.9rem;
  color: #6b6560;
  background: #fff;
  border: 1px solid #c5c0b6;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s;
  line-height: 1;
}
.auth-input-btn:hover {
  color: var(--lb-terracota);
  background: var(--lb-papel-oscuro);
}
.auth-input-btn:active,
.auth-input-btn:focus-visible {
  outline: none;
  box-shadow: none;
  background: var(--lb-papel-oscuro);
}

/* ── Forgot-password card fix ── */
.recover-card {
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid var(--lb-borde);
}

/* ── Mobile section padding (design system §4) ── */
.auth-page,
.recover-wrap {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .auth-page,
  .recover-wrap {
    padding: 5rem 0;
  }
}
