/* assets/css/auth.css */

/* Variables globales */
:root {
  --primary: #17B26A;
  --primary-dark: #149655;
  --primary-light: rgba(23, 178, 106, 0.1);
  --background: #FFFFFF;
  --background-alt: #F8FAFC;
  --text: #1A2942;
  --text-light: #4A5567;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* Contenedor común para login y register */
.login-container,
.register-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--background);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

/* Títulos */
.login-container h2,
.register-container h2 {
  text-align: center;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Mensajes de error y éxito */
.login-error,
.form-error {
  color: #e53e3e;
  text-align: center;
  margin-bottom: 1rem;
}
.form-success {
  color: #2f855a;
  text-align: center;
  margin-bottom: 1rem;
}

/* Formularios */
.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Inputs */
.login-form input,
.register-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background: var(--background-alt);
  transition: border-color .2s, box-shadow .2s;
}

.login-form input:focus,
.register-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Botones */
.login-form button,
.register-form button {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.login-form button:hover,
.register-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Contenedor general centrado */
.login-container {
  max-width: 380px;      /* Ancho máximo del formulario */
  margin: 3rem auto;     /* Centrado horizontal y separación vertical */
  padding: 2rem;         /* Espacio interno */
  background: #fff;      /* Fondo blanco */
  border-radius: 8px;    /* Esquinas redondeadas */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Sombra sutil */
}

/* Título centrado y con espacio abajo */
.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Inputs y botón de submit ocupando 100% */
.login-form input,
.login-form button {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

/* Botón Entrar */
.login-form button {
  background: #2bb673;
  color: #fff;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Contenedor de botones sociales */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;    /* Espacio uniforme entre botones */
  margin-top: 1rem;
}

/* Botones sociales a bloque */
.social-login .btn {
  display: block;
  width: 100%;
  padding: 0.65rem;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Facebook */
.btn-facebook {
  background-color: #1877F2;
  color: #fff;
}

/* Google */
.btn-google {
  background-color: #fff;
  color: #444;
  border: 1px solid #ddd;
}

/* Iconos dentro de botones sociales */
.social-login .btn img {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.login-footer {
  text-align: center;
  margin-top: 1rem;
}
.forgot-link {
  color: #666;
  font-size: 0.9rem;
  text-decoration: underline;
}
.forgot-link:hover {
  color: #333;
}
