/* frontend/css/styles.css
   Este archivo debe afectar SOLO al login.
   El dashboard se controla con dashboard.css
*/

html,
body {
  margin: 0;
  padding: 0;
}

/* =========================
   LOGIN ONLY
========================= */
body.login {
  font-family: Arial, sans-serif;
  background: #0f172a;
  min-height: 100dvh;
  /* mejor que 100vh en iOS */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* evita cortes en pantallas chicas */
}

body.login .login-container {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  width: min(360px, 100%);
  text-align: center;
}

body.login input {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  box-sizing: border-box;
}

body.login button {
  width: 100%;
  padding: 0.7rem;
  background: #111827;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

body.login #login-error {
  color: #ef4444;
  margin-top: 0.5rem;
}

/* =========================
   LOGO SVG (LOGIN)
   Requiere: /images/ui/MIXO_logo_Vector.svg
========================= */
body.login .logo-login-svg {
  width: 120px;
  height: 120px;
  display: inline-block;
  margin-bottom: 1rem;

  background-color: #111827 !important;

  -webkit-mask-image: url("/images/ui/MIXO_logo_Vector.svg") !important;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url("/images/ui/MIXO_logo_Vector.svg") !important;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}