/* ==========================================
   ESTILOS PARA EL MÓDULO DE INICIO DE SESIÓN
   ========================================== */

:root {
  --login-bg: #f8fafc;
  --login-card-bg: #ffffff;
  --login-input-bg: #edf2f7;
  --login-text-dark: #1e293b;
  --login-text-muted: #64748b;
  --login-placeholder: #94a3b8;
  --login-primary-blue: #2b88d8;
  --login-primary-hover: #1d72b8;
  --login-link-blue: #0f4c81;
  --login-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--login-font);
}

body.login-body {
  background-color: var(--login-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  color: var(--login-text-dark);
}

/* Background Abstract Geometric Circles (Matching Screenshot) */
.login-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-bg-decor svg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Container Card */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.login-header {
  margin-bottom: 2.25rem;
}

.login-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--login-text-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group-custom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 1.25rem;
  font-size: 1.2rem;
  color: var(--login-text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-pill {
  width: 100%;
  height: 56px;
  padding: 0 1.25rem 0 3.2rem;
  background-color: var(--login-input-bg);
  border: 1.5px solid transparent;
  border-radius: 20px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--login-text-dark);
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-pill::placeholder {
  color: var(--login-placeholder);
  font-weight: 400;
}

.input-pill:focus {
  background-color: #ffffff;
  border-color: var(--login-primary-blue);
  box-shadow: 0 0 0 4px rgba(43, 136, 216, 0.15);
}

.input-pill:focus + .input-icon-left,
.input-wrapper:focus-within .input-icon-left {
  color: var(--login-primary-blue);
}

/* Password eye toggle button */
.toggle-password-btn {
  position: absolute;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--login-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toggle-password-btn:hover {
  color: var(--login-text-dark);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Forgot Password Link */
.forgot-password-container {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.forgot-password-link {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--login-link-blue);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--login-primary-blue);
  text-decoration: underline;
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  height: 56px;
  background-color: var(--login-primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px -4px rgba(43, 136, 216, 0.4);
  transition: all 0.25s ease;
  margin-top: 0.75rem;
}

.btn-login-submit:hover {
  background-color: var(--login-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(43, 136, 216, 0.5);
}

.btn-login-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -2px rgba(43, 136, 216, 0.4);
}

.btn-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Alert Notification Banner */
.alert-login {
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-login-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-login-success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal dialog for Forgot Password */
.forgot-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.forgot-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.forgot-modal-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.forgot-modal-backdrop.active .forgot-modal-box {
  transform: scale(1);
}
