/* ===================== IMPORTACIÓN DE FUENTES ===================== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* ===================== VARIABLES ===================== */
:root {
  --color-primario: #1976d2;
  --color-primario-hover: #1565c0;
  --color-error-bg: #ffcdd2;
  --color-error-text: #c62828;
  --font-principal: 'Quicksand', sans-serif;
}

/* ===================== RESET GENERAL ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-principal);
}

/* ===================== BODY ===================== */
body {
  background: linear-gradient(to bottom, #5a7bfd, #1f48b5);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===================== CONTENEDOR GENERAL ===================== */
.container {
  background: white;
  border-radius: 12px;
  display: flex;
  width: 90%;
  max-width: 1000px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* ===================== PANEL IZQUIERDO ===================== */
.left-panel {
  flex: 1;
  background: #f4f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.left-panel img {
  max-width: 100%;
  height: auto;
}

/* ===================== FORMULARIO LOGIN ===================== */
.login-box {
  flex: 1.1;
  padding: 50px 50px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.login-box h2 {
  margin-bottom: 20px;
  color: #333;
}

.logo-empresa {
  max-width: 120px;
  margin-bottom: 1rem;
}

/* ===================== ICONOS EN INPUTS ===================== */
.input-group .material-icons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

/* ===================== INPUTS Y LABELS ===================== */
.input-group,
.modal-content .input-group {
  position: relative;
  margin-bottom: 1.8rem;
  text-align: left;
}

.input-group input,
.modal-content input {
  width: 100%;
  padding: 1.2rem 3rem 0.6rem 0.7rem; /* inputs más largos */
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 1rem;
  outline: none;
  background: transparent;
  transition: border-color 0.3s;
}

.input-group input:focus,
.modal-content input:focus {
  border-color: var(--color-primario);
}

.input-group label,
.modal-content label {
  position: absolute;
  left: 0.7rem;
  top: 1rem;
  font-size: 1rem;
  color: #888;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  background: white;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.modal-content input:focus + label,
.modal-content input:not(:placeholder-shown) + label {
  top: -0.4rem;
  font-size: 0.75rem;
  color: var(--color-primario);
  padding: 0 0.3rem;
}

/* ===================== CHECKBOX CENTRADO Y ESTILIZADO ===================== */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center; /* centra horizontalmente */
  gap: 8px;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  width: 100%;
}

.checkbox-wrapper input[type="checkbox"] {
  accent-color: var(--color-primario);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ===================== BOTONES ===================== */
.btn {
  width: 100%;
  padding: 1rem; /* más alto */
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px; /* separación entre botones */
}

.login-btn {
  background-color: var(--color-primario);
}

.login-btn:hover {
  background-color: var(--color-primario-hover);
}

.google-btn {
  background-color: #ea4335;
}

.google-btn:hover {
  background-color: #d73326;
}

.facebook-btn {
  background-color: #3b5998;
}

.facebook-btn:hover {
  background-color: #2d4373;
}

.icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== DIVIDER ===================== */
.divider {
  height: 1px;
  background-color: #ccc;
  margin: 10px 0;
}

/* ===================== LINKS ===================== */
.links {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.links a {
  color: var(--color-primario);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* ===================== ERROR ===================== */
.error {
  background-color: var(--color-error-bg);
  color: var(--color-error-text);
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ===================== MODALES ===================== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  width: 95%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--color-primario);
}

.modal-content .btn-login {
  background-color: var(--color-primario);
  color: white;
  border-radius: 8px;
  transition: background 0.3s;
}

.modal-content .btn-login:hover {
  background-color: var(--color-primario-hover);
}

.modal-content .btn-cerrar {
  background: #ccc;
  color: #333;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content .btn-cerrar:hover {
  background: #bbb;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 760px) {
  .container {
    flex-direction: column;
    width: 100%;
    margin: 20px;
  }

  .left-panel {
    display: none;
  }

  .login-box {
    width: 100%;
    padding: 30px 20px;
	display: flex;
  }

  .logo-empresa {
    max-width: 90px;
  }

  .input-group input {
    font-size: 1.05rem;
    padding: 1.2rem 3rem 0.6rem 0.8rem;
  }

  .input-group label {
    font-size: 0.95rem;
  }

  .input-group .material-icons {
    font-size: 26px;
  }
}

/* ========== BOTONES MODALES ESTILO MATERIAL DESIGN ========== */
button[class^="btn-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%; /* botón alargado */
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-top: 1rem;
}

/* Animación de presionado */
button[class^="btn-"]:active {
  transform: scale(0.97);
}

/* ========= ESTILOS PERSONALIZADOS POR BOTÓN ========= */

/* Enviar recuperación */
.btn-recup {
  background-color: #1976d2;
}
.btn-recup:hover {
  background-color: #1565c0;
  box-shadow: 0 6px 14px rgba(21, 101, 192, 0.4);
}

/* Registrar */
.btn-reg {
  background-color: #388e3c;
}
.btn-reg:hover {
  background-color: #2e7d32;
  box-shadow: 0 6px 14px rgba(46, 125, 50, 0.4);
}

/* Verificar registro */
.btn-registro {
  background-color: #7b1fa2;
}
.btn-registro:hover {
  background-color: #6a1b9a;
  box-shadow: 0 6px 14px rgba(106, 27, 154, 0.4);
}

/* Verificar recuperación */
.btn-recuperacion {
  background-color: #f57c00;
}
.btn-recuperacion:hover {
  background-color: #ef6c00;
  box-shadow: 0 6px 14px rgba(239, 108, 0, 0.4);
}

/* Guardar contraseña */
.btn-guardar {
  background-color: #0097a7;
}
.btn-guardar:hover {
  background-color: #00838f;
  box-shadow: 0 6px 14px rgba(0, 131, 143, 0.4);
}

/* Verificar código */
.btn-verificar {
  background-color: #c2185b;
}
.btn-verificar:hover {
  background-color: #ad1457;
  box-shadow: 0 6px 14px rgba(173, 20, 87, 0.4);
}

/* Botón cancelar común */
.btn-cerrar {
  background-color: #e0e0e0;
  color: #333;
}
.btn-cerrar:hover {
  background-color: #d5d5d5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
