/* === Estilo general === */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f7fa;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* === Contenedor principal === */
.contenedor {
  background-color: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 360px;
  text-align: center;
}

/* === Título === */
h2 {
  color: #0078d7;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

/* === Etiquetas === */
label {
  font-weight: bold;
  color: #333;
  display: block;
  text-align: left;
  margin-bottom: 5px;
}

/* === Campos de texto === */
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #0078d7;
  outline: none;
}

/* === Botón principal === */
button {
  background-color: #0078d7;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #005fa3;
}

/* === Enlaces === */
a {
  color: #0078d7;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

/* === Mensajes de error === */
p[style*="color:red"] {
  background-color: #ffe6e6;
  color: #b30000 !important;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 500;
}

/* === Responsivo === */
@media (max-width: 480px) {
  .contenedor {
    width: 90%;
    padding: 30px 20px;
  }

  h2 {
    font-size: 1.5rem;
  }
}
