/* Login Page - Diseño Moderno Rosa Profesional con Poppins */

/* Importar Poppins si no está ya importado */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --primary-gradient: linear-gradient(135deg, #ff6b9d 0%, #ff9eb7 100%);
  --primary-color: #ff6b9d;
  --primary-light: #ff9eb7;
  --primary-lighter: #ffc3d5;
  --shadow-pink: rgba(255, 107, 157, 0.15);
  --shadow-pink-strong: rgba(255, 107, 157, 0.25);
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Panel izquierdo con gradiente mejorado */
.login-left-panel {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff9eb7 50%, #ffc3d5 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Patrón de fondo animado más sutil */
.login-left-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 60px 60px, 40px 40px;
  animation: moveBackground 25s linear infinite;
  z-index: 1;
}

/* Efecto de brillo sutil */
.login-left-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.1);
  }
}

.login-left-panel .z-2 {
  z-index: 2;
  position: relative;
}

/* Contenido del panel izquierdo mejorado */
.login-left-panel h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.login-left-panel .lead {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-left-panel .display-1 {
  font-size: 5rem;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Features list mejorada */
.features-list {
  font-size: 1.1rem;
  margin-top: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.75rem 0;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
}

.feature-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

/* Panel derecho con formulario */
.login-form-container {
  animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Encabezado del formulario */
.login-form-container h2 {
  color: #2d3748;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-form-container .text-muted {
  color: #718096 !important;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Card de Login mejorada */
.card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(255, 107, 157, 0.12),
    0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

/* Borde superior decorativo */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-gradient);
}

.card:hover {
  box-shadow: 0 15px 50px rgba(255, 107, 157, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card-body {
  padding: 2.5rem !important;
}

/* Logo Icon mejorado */
.bi-calendar-check {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 5px 15px rgba(255, 107, 157, 0.4));
  font-size: 4rem;
  display: inline-block;
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Alerts mejoradas */
.alert {
  border-radius: 14px;
  border: none;
  padding: 1.125rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  letter-spacing: -0.01em;
}

.alert i {
  font-size: 1.1rem;
}

.alert-danger {
  background: linear-gradient(135deg, #ffe0e6 0%, #ffd0da 100%);
  color: #c53030;
  border-left: 4px solid #ff4d7a;
}

.alert-success {
  background: linear-gradient(135deg, #ffe8f0 0%, #ffd9e8 100%);
  color: #d91f6a;
  border-left: 4px solid #ff99b8;
}

.alert-dismissible .btn-close {
  padding: 1.25rem;
}

/* Form Groups */
.mb-3 label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}

.mb-3 label i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Form Controls mejorados */
.form-control {
  border-radius: 14px;
  border: 2.5px solid #ffd0e0;
  padding: 1rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fffbfc;
  font-size: 0.95rem;
  color: #2d3748;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 5px rgba(255, 158, 183, 0.15),
    0 4px 12px rgba(255, 107, 157, 0.12);
  background: white;
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #ffb8cc;
  font-size: 0.9rem;
  font-weight: 400;
}

.form-control-lg {
  padding: 1.125rem 1.5rem;
  font-size: 1rem;
  border-radius: 14px;
}

/* Input Group mejorado */
.input-group {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.08);
}

.input-group-text {
  background: linear-gradient(135deg, #fff5f8 0%, #ffebf0 100%);
  border: 2.5px solid #ffd0e0;
  border-right: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.input-group .form-control {
  border-left: none;
  padding-left: 0.75rem;
}

.input-group:focus-within .input-group-text {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, #ffe8f0 0%, #ffd9e8 100%);
}

.input-group:focus-within .form-control {
  border-color: var(--primary-light);
}

/* Password Toggle Button mejorado */
.input-group button {
  background: linear-gradient(135deg, #fff5f8 0%, #ffebf0 100%);
  border: 2.5px solid #ffd0e0;
  border-left: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
  padding: 0 1.25rem;
  font-size: 1.1rem;
}

.input-group button:hover {
  color: var(--primary-color);
  background: linear-gradient(135deg, #ffe8f0 0%, #ffd9e8 100%);
  transform: scale(1.05);
}

.input-group button:active {
  transform: scale(0.95);
}

.input-group:focus-within button {
  border-color: var(--primary-light);
}

/* Checkbox mejorado */
.form-check-input {
  width: 1.35rem;
  height: 1.35rem;
  border: 2.5px solid #ffc9d4;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.form-check-input:checked {
  background: var(--primary-gradient);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.form-check-label {
  color: #4a5568;
  margin-left: 0.625rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Button Login mejorado */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 14px;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.35);
}

.btn-lg {
  padding: 1.125rem 2.75rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Footer Text mejorado */
.text-center.mt-3,
.text-center.mt-4 {
  color: #718096;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-center small {
  font-weight: 500;
}

.text-center strong {
  font-weight: 700;
  color: #4a5568;
}

/* Border superior del footer */
.border-top {
  border-color: rgba(255, 192, 213, 0.25) !important;
}

/* Responsive móvil */
@media (max-width: 575.98px) {
  .login-left-panel h1 {
    font-size: 2.25rem;
  }

  .login-left-panel .lead {
    font-size: 1rem;
  }

  .login-left-panel .display-1 {
    font-size: 3.5rem;
  }

  .features-list {
    font-size: 0.95rem;
  }

  .feature-item i {
    font-size: 1.25rem;
  }

  .login-form-container {
    padding: 1.5rem 1rem;
  }

  .login-form-container h2 {
    font-size: 1.5rem;
  }

  .card-body {
    padding: 1.75rem !important;
  }

  .bi-calendar-check {
    font-size: 3rem;
  }

  .form-control,
  .input-group-text,
  .input-group button {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .login-form-container {
    max-width: 100% !important;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
  .login-left-panel h1 {
    font-size: 3rem;
  }

  .card-body {
    padding: 2.25rem !important;
  }
}

/* Animación de entrada del card */
.card {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras de accesibilidad */
.form-control:focus-visible,
.form-check-input:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(255, 107, 157, 0.4);
  outline-offset: 2px;
}

/* Loading state para el botón */
.btn-primary.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-primary.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Efecto de foco mejorado para inputs */
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 5px rgba(255, 158, 183, 0.15),
    0 4px 12px rgba(255, 107, 157, 0.12);
}

/* Estilo para links */
a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 2px;
}
