/* Reseteo y box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables de color */
:root {
  --color-primario: #2c5c97;
  --color-hover: #134582cd;
  --color-blanco: #fff;
  --color-blanco-claro: #fefefe;
  --color-gris-oscuro: #222;
  --color-gris: #111;
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--color-primario), #062952);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenedor principal */
.container {
  background-color: var(--color-blanco);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Título */
.container h2 {
  margin-bottom: 25px;
  font-size: 24px;
  color: var(--color-gris-oscuro);
  font-weight: 600;
}

/* Input de email */
.container input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border 0.3s ease;
}
.container input[type="email"]:focus {
  border-color: var(--color-primario);
  outline: none;
}

/* Botón de envío */
.container button[type="submit"] {
  width: 100%;
  background-color: var(--color-primario);
  color: var(--color-blanco);
  padding: 12px;
  margin-top: 15px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.container button[type="submit"]:hover {
  background-color: var(--color-hover);
  text-decoration: underline;
}

/* Enlace de volver */
.volver {
  display: block;
  margin-top: 15px;
  color: var(--color-primario);
  text-decoration: none;
  font-size: 14px;
}
.volver:hover {
  color: var(--color-hover);
  text-decoration: underline;
}
/* Mensajes del servidor (éxito y error) */
.mensaje {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilo para mensaje de éxito */
.mensaje.exito {
  background-color: #d4edda;
  color: #155724;
  border-left: 6px solid #28a745;
}

/* Estilo para mensaje de error */
.mensaje.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 6px solid #dc3545;
}
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilo general del body */
body {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Contenedor principal */
.container {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Título */
.container h2 {
  margin-bottom: 20px;
  color: #333;
}

/* Inputs */
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Botón principal */
button[type="submit"] {
  background-color: #4facfe;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #00c6fb;
}

/* Navegación */
.navbar {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.navbar a {
  text-decoration: none;
  color: #4facfe;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #00c6fb;
}


