/* Login Linda Flor — split layout, marca rosa, animación suave */

main:has(.login-lf-page) > .container {
  max-width: none !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

main:has(.login-lf-page) .messages {
  padding: 14px clamp(16px, 4vw, 32px) 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

main:has(.login-lf-page) {
  background: linear-gradient(180deg, #fdf6f7 0%, #f8e8e8 100%) !important;
}

.login-lf-page {
  --lf-login-pink: #f8e8e8;
  --lf-login-blush: #f3d6d6;
  --lf-login-rose: #d48c8c;
  --lf-login-rose-dark: #b76e79;
  --lf-login-black: #1e1a1b;
  --lf-login-muted: #6b5e62;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100vh - 140px), 900px);
  background: linear-gradient(
    135deg,
    #fff5f6 0%,
    var(--lf-login-pink) 38%,
    var(--lf-login-blush) 72%,
    #f0e0e4 100%
  );
  position: relative;
  overflow: hidden;
}

/* Brillo / partículas muy suaves */
.login-lf-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(255, 220, 230, 0.45) 0%, transparent 38%),
    radial-gradient(circle at 40% 88%, rgba(255, 255, 255, 0.35) 0%, transparent 35%);
  animation: login-lf-shimmer 12s ease-in-out infinite alternate;
}

@keyframes login-lf-shimmer {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

.login-lf {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Columna imagen */
.login-lf__visual {
  flex: 1.05;
  min-height: 320px;
  position: relative;
  background-color: #e8c4c8;
  background-image: var(--login-lf-hero-image);
  background-size: cover;
  background-position: center;
}

.login-lf__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(248, 232, 232, 0.15) 0%,
    rgba(30, 26, 27, 0.12) 45%,
    rgba(248, 232, 232, 0.25) 100%
  );
  pointer-events: none;
}

.login-lf__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.9) 0%,
    transparent 50%
  ),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 55% 75%, rgba(255, 240, 248, 0.55) 0%, transparent 45%);
  animation: login-lf-sparkle 8s ease-in-out infinite;
}

@keyframes login-lf-sparkle {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.42;
  }
}

/* Columna formulario */
.login-lf__panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) clamp(18px, 4vw, 40px);
  min-width: 0;
}

.login-lf__card {
  width: 100%;
  max-width: 400px;
  padding: clamp(32px, 5vw, 42px) clamp(28px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 60px rgba(60, 40, 50, 0.12),
    0 8px 24px rgba(60, 40, 50, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-lf__card--animate {
  animation: login-lf-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-lf-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-lf__head {
  text-align: center;
  margin-bottom: 28px;
}

.login-lf__head h1 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: #4a3038;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.login-lf__sub {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--lf-login-muted);
  line-height: 1.55;
}

.login-lf__errors {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(212, 140, 140, 0.12);
  border: 1px solid rgba(183, 110, 121, 0.28);
  color: #8b3a45;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.85rem;
}

.login-lf__errors li + li {
  margin-top: 6px;
}

.login-lf__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-lf__field label {
  display: block;
  margin-bottom: 8px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7e82;
}

.login-lf__input-wrap {
  position: relative;
}

.login-lf__input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #c49a9f;
  pointer-events: none;
  z-index: 1;
}

.login-lf__input-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.login-lf__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px 12px 46px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--lf-login-black);
  background: #faf7f8 !important;
  border: 1px solid #eee !important;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.login-lf__input::placeholder {
  color: #b5a8ac;
}

.login-lf__input:hover {
  border-color: #e8d4d8 !important;
}

.login-lf__input:focus {
  outline: none;
  border-color: rgba(212, 140, 140, 0.55) !important;
  background: #fff !important;
  box-shadow:
    0 0 0 3px rgba(212, 140, 140, 0.22),
    0 4px 14px rgba(183, 110, 121, 0.12);
}

.login-lf__field-error {
  display: block;
  margin-top: 6px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.8rem;
  color: #b76e79;
}

.login-lf__forgot {
  margin: -8px 0 0;
}

.login-lf__link {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lf-login-rose-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-lf__link:hover {
  color: #943d4a;
  text-decoration: underline;
}

.login-lf__submit {
  width: 100%;
  margin-top: 4px;
  min-height: 50px;
  padding: 14px 24px;
  border: none;
  border-radius: 25px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff !important;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    #e8a4a8 0%,
    var(--lf-login-rose) 38%,
    var(--lf-login-rose-dark) 100%
  ) !important;
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 28px rgba(183, 110, 121, 0.38);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.login-lf__submit:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 36px rgba(183, 110, 121, 0.45);
  filter: brightness(1.03);
}

.login-lf__submit:active {
  transform: scale(0.99) translateY(0);
}

.login-lf__submit:focus-visible {
  outline: 2px solid var(--lf-login-rose-dark);
  outline-offset: 3px;
}

.login-lf__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 4px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8989c;
}

.login-lf__divider::before,
.login-lf__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5d8dc, transparent);
}

.login-lf__google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 25px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, #2d2a2b 0%, #1e1a1b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-lf__google-btn:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.login-lf__google-btn:focus-visible {
  outline: 2px solid var(--lf-login-rose);
  outline-offset: 2px;
}

.login-lf__google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.login-lf__footer {
  margin-top: 26px;
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--lf-login-muted);
}

.login-lf__footer a {
  color: var(--lf-login-rose-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-lf__footer a:hover {
  color: #943d4a;
}

@media (max-width: 900px) {
  .login-lf {
    flex-direction: column;
  }

  .login-lf__visual {
    flex: none;
    min-height: min(38vh, 280px);
    max-height: 320px;
  }

  .login-lf__panel {
    flex: 1;
    padding: 28px 18px 40px;
  }

  .login-lf-page {
    min-height: auto;
  }
}

@media (max-width: 380px) {
  .login-lf__card {
    padding: 26px 20px;
  }
}
