/* Reset muy ligero */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: #020202;
  background: url('../img/fondovyda.png') center/cover fixed;
  position: relative;
}
body::before {
  content: '';
  position: absolute; inset: 0;
  background: #1e617b;
  opacity: 0.4;
  z-index: -1;
}

/* Centrar contenido */
.page-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: calc(100vh - 60px); /* menos header */
}

/* Header minimalista */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.main-header .link {
  text-decoration: none;
  color: #020202;
  font-weight: 600;
}

/* Tarjeta limpia */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}
.card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Alerta de error */
.alert {
  background: #ffdddd;
  color: #900;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Formulario vertical */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}
.form input {
  margin-top: 0.25rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form input:focus {
  outline: none;
  border-color: #1e617b;
}
.form button {
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  background: #1e617b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form button:hover {
  opacity: 0.9;
}
