/* Fondo general como en el mockup */
body { background-color: #c5f2f9; }

/* Contenedor principal en columna */
.login-page{
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;   /* Colocar card y botón en columna */
  align-items: center;      /* Centrados horizontal */
  justify-content: flex-start;
  padding-top: 60px;
  padding-bottom: 40px;
  gap: 16px;                /* Separación entre card y botón */
}

/* Tarjeta azul */
.login-card{
  background-color: #2f90ff;
  color: #fff;
  width: 420px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 34px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.login-card h2{
  margin: 0 0 6px 0;
  text-align: center;
  font-weight: 800;
  font-family: "Inter", system-ui, sans-serif;
}

.login-card hr{
  border: 0; border-top: 2px solid rgba(255,255,255,.8);
  margin: 8px 0 10px;
}

.login-error{
  background: rgba(0,0,0,.15);
  padding: 8px 10px;
  border-radius: 8px;
}

/* Etiquetas e inputs */
.login-card label{
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
}

.login-input{
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 10px 14px;
  background: #e2e2e2;
  color: #111;
  font-size: 15px;
  outline: none;
}

/* Botón de login */
.login-button{
  margin-top: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: #0029ff;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.login-button:hover{ background:#001acc; }
.login-button:focus-visible{
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

/* Botón para volver al inicio */
.home-button-container{
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-button{
  display: inline-block;
  padding: 10px 20px;
  background: #ff7b00;       /* 🔸 Naranja inicial */
  color: #fff;
  text-decoration: none;
  border: 2px solid #ff7b00; /* Borde naranja */
  border-radius: 12px;
  font-weight: 600;
  font-family: "Inter", system-ui, sans-serif;
  transition: all 0.2s ease;
}

.home-button:hover{
  background: #e56e00;   /* 🔸 Naranja más oscuro */
  border-color: #e56e00;
  color: #fff;
  text-decoration: none;
}

.home-button:focus-visible{
  outline: 2px solid #e56e00;
  outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .login-page {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  
  .login-card {
    width: 90vw;
    max-width: 350px;
    padding: 20px 24px 24px;
    gap: 12px;
  }
  
  .login-card h2 {
    font-size: 20px;
  }
  
  .login-input {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .login-button {
    padding: 14px 18px;
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .login-card {
    width: 95vw;
    padding: 18px 20px 22px;
  }
  
  .login-card h2 {
    font-size: 18px;
  }
}
