/* -------------------------------------------------------------------
   🔷 Estilo general del cuerpo (centrado del contenido)
------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* -------------------------------------------------------------------
   🔷 Contenedor principal del formulario (la tarjeta)
------------------------------------------------------------------- */
.card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center; /* Centra el contenido interno */
}

/* -------------------------------------------------------------------
   🔷 Logo (imagen de Ecosenderismo)
------------------------------------------------------------------- */
.logo {
  max-width: 150px;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------
   🔷 Campos de entrada (email y contraseña)
------------------------------------------------------------------- */
input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  display: block;
}



/* -------------------------------------------------------------------
   🔷 Botón principal de "Inicia sesión"
------------------------------------------------------------------- */
button.btn {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

/* -------------------------------------------------------------------
   🔷 Enlaces de ayuda ("¿Olvidaste tu contraseña?" y crear cuenta)
------------------------------------------------------------------- */
.link, .switch-form {
  font-size: 0.9em;
  margin-top: 10px;
  text-align: center;
}

.link a, .switch-form a {
  color: #6a1b9a;
  text-decoration: none;
}

.link a:hover, .switch-form a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------
   🔷 Separador "o"
------------------------------------------------------------------- */
.or {
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

/* -------------------------------------------------------------------
   🔷 Mensaje de error
------------------------------------------------------------------- */
.error {
  color: red;
  font-size: 0.85em;
  display: block;
  margin-top: -5px;
  margin-bottom: 10px;
}

.google-login {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
  }

  #googleSignIn > div {
  display: inline-block;
}

.google-register {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
  }

  #googleRegister > div {
  display: inline-block;
  
}


@media (max-width: 480px) {
  .card {
    padding: 15px;
    margin: 10px;
  }

  h2 {
    font-size: 1.2em;
  }

  .switch-form,
  .link {
    font-size: 0.8em;
  }
}

.card h2 {
  font-size: 1em;
  margin-bottom: 15px;
}