/* ===== Reset general ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Fondo ===== */
body {
  font-family: Arial, sans-serif;
  background: 
    linear-gradient(rgba(240, 247, 241, 0.9), rgba(240, 247, 241, 0.9)),
    url("Letras.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  color: #2f4f2f; /* verde oscuro */
}

/* ===== Tarjeta del formulario ===== */
.card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
  border-top: 6px solid #8b5e3c; /* café tierra */
  animation: fadeIn 0.6s ease-in-out;
}
/* Botón de regresar */
.btn-regresar {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #008000; /* 🌳 Verde */
    color: #fff; /* ⚪ Blanco */
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000; /* Se mantiene encima de todo */
}

.btn-regresar:hover {
    background-color: #008204; /* 💚 Verde esmeralda */
    transform: scale(1.05);
}


/* ===== Animación de entrada ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Títulos ===== */
.card h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #2f4f2f; /* verde oscuro */
  border-bottom: 2px solid #a8c3a5; /* verde suave */
  padding-bottom: 10px;
}

/* ===== Labels ===== */
label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  font-size: 14px;
  color: #3c763d; /* verde hoja */
}

/* ===== Inputs ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #a8c3a5; /* verde suave */
  border-radius: 8px;
  background-color: #f0f7f1; /* fondo claro natural */
  font-size: 14px;
  transition: 0.3s;
}

input:focus {
  border-color: #3c763d; /* verde hoja */
  outline: none;
  box-shadow: 0 0 5px rgba(60, 118, 61, 0.5);
}

/* ===== Botón ===== */
input[type="submit"] {
  background: #3c763d; /* verde hoja */
  color: #fffbe7; /* amarillo claro */
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background: #2f4f2f; /* verde oscuro */
  box-shadow: 0 4px 12px rgba(47, 79, 47, 0.4);
}

/* ===== Mensaje de error ===== */
#error {
  color: #8b5e3c; /* café tierra */
  font-size: 13px;
  font-weight: bold;
}

/* ===== Selects ===== */
select#Institucion, 
select#Municipio,#Genero {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #a8c3a5; /* verde suave */
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #2f4f2f; /* verde oscuro */
  cursor: pointer;
  transition: 0.3s;
}

/* Hover y enfoque */
select#Institucion:focus,
select#Municipio:focus,
select#Genero:focus {
  border-color: #3c763d; /* verde hoja */
  outline: none;
  box-shadow: 0 0 5px rgba(60, 118, 61, 0.5);
}

/* ===== Resultado de creación de usuario ===== */
.resultado-login {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  text-align: center;
  border-top: 6px solid #3c763d; /* verde hoja */
  animation: fadeIn 0.6s ease-in-out;
}

.resultado-login b {
  color: #2f4f2f; /* verde oscuro */
}

.resultado-login a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #3c763d; /* verde hoja */
  color: #fffbe7; /* amarillo claro */
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

.resultado-login a:hover {
  background: #2f4f2f; /* verde oscuro */
  box-shadow: 0 4px 12px rgba(47, 79, 47, 0.4);
}

/* ===== Mensaje de éxito para usuario ===== */
.msj_user_pass {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px 25px;
    background-color: #f8fff8;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    text-align: center;
}

.mensaje-exito {
    color: #2e7d32; /* verde */
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== Mensaje de error para usuario ===== */
.mensaje-error {
  color: #d9534f;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
}

.Regreso_al_inicio {
    display: inline-block;
    padding: 10px 18px;
    background-color: #2e7d32; /* verde principal */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.Regreso_al_inicio:hover {
    background-color: #1b5e20; /* verde más oscuro */
}
@import "mobile.css";
