/**
 * Páginas de autenticación — misma línea visual que la landing (teal / slate)
 */

:root {
  --auth-teal-700: #0f766e;
  --auth-teal-600: #0d9488;
  --auth-slate-900: #0f172a;
  --auth-slate-600: #475569;
  --auth-slate-400: #94a3b8;
  --auth-border: #e2e8f0;
}

/* Fondo: imagen + overlay oscuro (sin rojo) */
.auth-background {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #0f172a;
  background-image: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 77, 72, 0.78) 48%,
      rgba(8, 47, 73, 0.88) 100%
    ),
    url("../images/piscifactoria.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 100vh;
  position: relative;
}

@media (min-width: 992px) {
  .auth-background {
    background-attachment: fixed;
  }
}

.auth-background::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20, 184, 166, 0.12), transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.auth-container {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  padding: 2rem 0 3rem;
}

.auth-nav .navbar-brand {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--auth-slate-900) !important;
}

.auth-card {
  border: 1px solid var(--auth-border);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
  background: #fff;
  animation: authCardIn 0.65s ease-out;
  max-width: 420px;
  margin: 0 auto;
}

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

.auth-card__brand {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 25px -8px rgba(15, 118, 110, 0.45);
}

.auth-card__title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--auth-slate-900);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-card__lead {
  font-size: 0.92rem;
  color: var(--auth-slate-600);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.auth-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--auth-slate-900);
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: 0.01em;
}

.auth-input {
  border: 1px solid var(--auth-border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--auth-teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  outline: none;
}

.auth-input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--auth-slate-400);
  border-radius: 0.35rem;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.auth-password-toggle:hover {
  color: var(--auth-teal-600);
  background: rgba(13, 148, 136, 0.08);
}

.auth-password-toggle:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  outline-offset: 2px;
}

.auth-password-toggle-ico svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.auth-link-muted {
  font-size: 0.8rem;
  color: var(--auth-teal-700);
  font-weight: 500;
}

.auth-link-muted:hover {
  color: #115e59;
  text-decoration: none;
}

.auth-btn-submit {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--auth-teal-700) 0%, var(--auth-teal-600) 100%);
  box-shadow: 0 4px 14px -4px rgba(15, 118, 110, 0.55);
  transition: transform 0.15s, box-shadow 0.2s;
}

.auth-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(15, 118, 110, 0.5);
  color: #fff !important;
}

.auth-check {
  font-size: 0.875rem;
  color: var(--auth-slate-600);
}

.auth-check input {
  accent-color: var(--auth-teal-600);
}

.auth-footnote {
  font-size: 0.8rem;
  color: var(--auth-slate-400);
  text-align: center;
  line-height: 1.45;
}

/* Nav compartida con la landing (auth) */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--auth-border);
}

.landing-nav .nav-link {
  color: var(--auth-slate-600) !important;
  font-weight: 500;
}

.landing-nav .nav-link:hover {
  color: var(--auth-teal-700) !important;
}
