/* ===== Body ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f7f1; /* fondo claro natural */
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */
  height: 100vh;
  color: #2f4f2f; /* verde oscuro */
}
/* Botón de regresar */
.btn-regresar {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #3c763d; /* 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: #2f4f2f; /* Verde esmeralda */
    transform: scale(1.05);
}


/* ===== Contenedor general ===== */
.container {
  width: 100%;
  max-width: 400px;
  padding: 0 20px; /* padding lateral */
  box-sizing: border-box;
}

/* ===== Tarjeta de Login ===== */
.card {
  background: #ffffff;
  padding: 40px 30px; /* reduce padding lateral para centrar mejor */
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-top: 6px solid #8b5e3c; /* café tierra */
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* ===== Título ===== */
.card h2 {
  color: #2f4f2f;
  margin-bottom: 25px;
  font-size: 24px;
  letter-spacing: 0.5px;
}

/* ====== Caja con ícono de ojo ====== */
.caja_de_texto {
  position: relative;
  margin-top: 15px;
  width: 100%;
}

.caja_de_texto input {
  width: 100%;
  padding: 12px 45px 12px 15px; /* espacio para el ícono */
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1.5;
  background-color: #f0f7f1;
  box-sizing: border-box;
}

.caja_de_texto img {
  position: absolute;
  right: 10px; /* alineado al borde derecho */
  top: 70%;
  transform: translateY(-50%); /* centrado vertical */
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.2s ease;
}


/* ===== Inputs ===== */
input[type="text"],input[type="password"] {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #a8c3a5;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f0f7f1;
  transition: 0.3s;
}

input:focus {
  border-color: #3c763d;
  outline: none;
  box-shadow: 0 0 6px rgba(60, 118, 61, 0.4);
}

/* ===== Botón ===== */
button {
  background-color: #3c763d;
  color: #fffbe7;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 17px;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  background-color: #2f4f2f;
}

/* ===== Enlaces ===== */
a {
  display: block;
  margin-top: 18px;
  color: #8b5e3c;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #3c763d;
}

/* ====== Eliminar íconos automáticos del navegador ====== */
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
}

/* ====== Responsivo ====== */
@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }

  .card h2 {
    font-size: 20px;
  }

  button {
    font-size: 15px;
    padding: 12px;
  }
}
@import "mobile.css";
