/* Mismo lenguaje visual que el dashboard (fondo oscuro, acento turquesa),
   pero esta página vive fuera de /madersa/ así que no reusa tema.css: es
   la puerta común a todos los clientes, cada uno con su propia paleta
   adentro de su dashboard. */
:root {
  --fondo: #0e1015;
  --panel: #181b23;
  --borde: #262b36;
  --texto: #e8eaf0;
  --texto-2: #a2aab9;
  --texto-3: #6b7382;
  --acento: #01B8AA;
  --acento-2: #04d6c6;
  --rojo: #FD625E;
  --rojo-fondo: rgba(253, 98, 94, .13);
  --fuente: "Segoe UI", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%; margin: 0;
  background: var(--fondo); color: var(--texto);
  font-family: var(--fuente);
  display: grid; place-items: center;
}

.tarjeta {
  width: min(360px, 90vw);
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: 16px; padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.marca {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px; font-size: 17px; font-weight: 700;
}
.logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--acento), #0a8f86);
  display: grid; place-items: center;
  font-size: 14px; color: #05231f; font-weight: 800;
}
.marca small { display: block; color: var(--texto-3); font-weight: 500; font-size: 11px; margin-top: 2px; }

.campo { display: block; margin-bottom: 16px; }
.campo span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--texto-3); margin-bottom: 6px;
}
.campo input {
  width: 100%; background: #0e1015; border: 1px solid var(--borde);
  border-radius: 9px; padding: 11px 12px; font-size: 14px;
  color: var(--texto); font-family: var(--fuente);
}
.campo input:focus {
  outline: none; border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(1, 184, 170, .18);
}

#btn-entrar {
  width: 100%; margin-top: 6px; padding: 12px; border: none; border-radius: 9px;
  background: var(--acento); color: #05231f; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: var(--fuente); transition: background .12s;
}
#btn-entrar:hover { background: var(--acento-2); }
#btn-entrar:disabled { opacity: .6; cursor: default; }

.error {
  margin-top: 14px; padding: 9px 11px; border-radius: 8px;
  background: var(--rojo-fondo); color: var(--rojo);
  font-size: 12.5px; text-align: center;
}

/* sacudida corta cuando falla el login */
@keyframes sacudir {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.tarjeta.mal { animation: sacudir .38s ease; }
