/* login_styles.css (basado en register_styles.css) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
html, body { height: 100%; width: 100%; overflow: hidden; }

body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 25%, #fbc2eb 50%, #a18cd1 75%, #8ec5fc 100%);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  display: flex; justify-content: center; align-items: center;
}
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.form-container {
  background-color: #ffffff;
  border-radius: 20px;
  width: 500px;
  max-width: 95%;
  padding: 40px 30px 50px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  overflow: hidden;
}

.logo-container img {
  width: 100px;
  margin: 0 auto 20px;
  display: block;
}

h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; color: #333333; }

input[type="text"], input[type="password"] {
  width: 100%; padding: 12px 14px; margin: 10px 0;
  border: 1px solid #cccccc; border-radius: 8px;
  font-size: 0.95rem; outline: none; transition: border-color 0.2s ease;
}
input:focus { border-color: #333333; }

/* Botón igual que register */
.btn {
  display: inline-block;
  width: 100%; padding: 10px 0;
  background-color: #333333; color: #ffffff;
  text-align: center; border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 15px;
}
.btn:hover { background-color: #555555; transform: translateY(-2px); }

.link-subtitle { margin: 10px 0 0; font-size: 0.9rem; }
.link-subtitle a { color: #555555; text-decoration: none; }
.link-subtitle u { text-decoration: underline; font-weight: 700; }

.footer-text {
  margin-top: 20px; font-size: 0.75rem;
  color: #999999; text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: #ffffff;
  border-radius: 12px;
  width: 300px;
  max-width: 80%;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal p {
  /* Título o mensaje de error */
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal .btn {
  /* Botón de cerrar modal igual a register */
  padding: 8px 16px;
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal .btn:hover {
  background-color: #555555;
  transform: translateY(-2px);
}

/* Mensaje de error centrado */
.error-message {
  margin-bottom: 20px;
  color: #d9534f;
  font-size: 0.85rem;
  text-align: center;
}

/* Overlay con animación suave de aparición */
#error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#error-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Caja del modal con animación suave */
#error-modal {
  background-color: #ffffff;
  border-radius: 12px;
  width: 300px;
  max-width: 80%;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-align: center;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#error-modal-overlay.active #error-modal {
  transform: translateY(0);
  opacity: 1;
}

/* Título del modal: “Error” */
#error-modal .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

/* Mensaje debajo del título */
#error-modal .modal-message {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Botón de cerrar */
#error-modal .modal-button {
  padding: 8px 16px;
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
#error-modal .modal-button:hover {
  background-color: #555555;
  transform: translateY(-2px);
}
