/* Pantallas de cuenta (ingreso y configuración inicial) con el diseño del login de Monitorplant:
   panel carbón de presentación a la izquierda (≥ 1024 px), tarjeta blanca de 440 px sobre la foto del alto horno
   a la derecha (≥ 640 px), cabecera carbón con el logo en tableta y tarjeta a todo el ancho en teléfono.
   Solo existe en claro. */
:root {
  --mp-bg: #f1f2f5; --mp-panel: #ffffff; --mp-line-strong: #d9d8dd; --mp-field: #ffffff;
  --mp-fg: #1f2832; --mp-fg-2: #5f656b; --mp-fg-3: #666f7a;
  --mp-primary: #e8580c; --mp-primary-hover: #d14e0a; --mp-primary-solido: #cc4b0a; --mp-primary-solido-hover: #b8430a;
  --mp-carbon: #1f2832; --mp-carbon-2: #2a3641; --mp-falla-ink: #c0202f;
  --mp-shadow-card: 0 8px 24px rgb(31 40 50 / 0.08);
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Outfit", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.auth { background: var(--mp-bg); color: var(--mp-fg); font-family: var(--f-sans); font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased; }
.auth h1, .auth h2 { font-family: var(--f-display); }
.auth a { color: inherit; }

.a-pagina { min-height: 100dvh; display: flex; flex-direction: column; }
.a-cabecera { height: 189px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--mp-carbon); }
.a-cabecera img { width: 280px; height: auto; }
.a-main { position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; }
.a-fondo { display: none; }
.a-tarjeta { width: 100%; background: var(--mp-panel); padding: 32px 24px 40px; }
.a-tarjeta h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; }
.a-sub { margin: 6px 0 0; font-size: 15px; line-height: 21px; color: var(--mp-fg-2); }
.a-form { display: flex; flex-direction: column; margin-top: 20px; }
.a-campo { display: flex; flex-direction: column; gap: 8px; }
.a-campo + .a-campo { margin-top: 18px; }
.a-campo label { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--mp-fg); }
.a-campo .ayuda { font-size: 13px; line-height: 18px; color: var(--mp-fg-3); }
.a-input { width: 100%; height: 48px; border: 1px solid var(--mp-line-strong); border-radius: 8px; background: var(--mp-field);
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--mp-fg); outline: none; }
.a-input:focus { border-color: var(--mp-primary); box-shadow: 0 0 0 3px rgb(232 88 12 / 0.25); }
.a-input[readonly] { background: #f1f2f5; color: var(--mp-fg-2); }
.a-input[aria-invalid="true"] { border-color: var(--mp-falla-ink); }
.a-clave { position: relative; }
.a-clave .a-input { padding-right: 92px; }
.a-ver { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); height: 44px; padding: 0 12px; border: 0;
  background: none; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 500; color: var(--mp-primary); cursor: pointer; }
.a-ver:hover { color: var(--mp-primary-hover); }
.a-error { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 20px; color: var(--mp-falla-ink); }
.a-error svg { flex-shrink: 0; margin-top: 2px; }
.a-ok { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--mp-fg-2); }
.a-opciones { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 15px; }
.a-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: -5px 0; cursor: pointer; }
.a-check input { width: 18px; height: 18px; accent-color: var(--mp-primary-solido); margin: 0; }
.a-btn { margin-top: 16px; height: 50px; border: 0; border-radius: 8px; background: var(--mp-primary-solido); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.a-btn:hover { background: var(--mp-primary-solido-hover); }
.a-btn:focus-visible { outline: 3px solid rgb(232 88 12 / 0.45); outline-offset: 2px; }
.a-nota { margin-top: 24px; font-size: 15px; line-height: 21px; color: var(--mp-fg-2); text-align: center; }
.a-pie { margin-top: auto; padding: 24px 0; text-align: center; font-family: var(--f-mono); font-size: 11px; line-height: 16px;
  letter-spacing: 0.04em; color: var(--mp-fg-3); }

/* Panel carbón de presentación (escritorio) */
.a-panel { display: none; }
.a-panel .marca img { width: 370px; max-width: 100%; height: auto; display: block; }
.a-panel .lema { margin: 16px 0 0; text-align: center; font-family: var(--f-mono); font-size: 12px; line-height: 16px;
  letter-spacing: 0.16em; color: #b4bcc5; }
/* Sigla CMMS destacada */
.a-cmms { margin: 40px 0 0; padding-left: 18px; border-left: 4px solid var(--mp-primary); }
.a-cmms .sigla { margin: 0; font-family: var(--f-display); font-size: clamp(56px, 5.4vw, 76px); line-height: 0.95; font-weight: 700;
  letter-spacing: 0.04em; color: #fff; }
.a-cmms .ingles { margin: 10px 0 0; font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; color: #e6e9ec; }
.a-cmms .ingles b { color: var(--mp-primary); font-weight: 700; }
.a-cmms .es { margin: 6px 0 0; font-family: var(--f-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: #b4bcc5; }
.a-panel .texto { margin: 20px 0 0; line-height: 1.4; color: #8a939d; }
.a-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.a-kpis li { border-radius: 6px; background: var(--mp-carbon-2); padding: 16px 10px 10px; }
.a-kpis .v { margin: 0; font-family: var(--f-display); font-size: 22px; line-height: 26px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-kpis .v.dest { color: var(--mp-primary); }
.a-kpis .e { margin: 6px 0 0; font-family: var(--f-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.06em; white-space: nowrap; color: #8a939d; }
.a-graf { margin-top: 16px; border-radius: 6px; background: var(--mp-carbon-2); padding: 14px 18px 12px; }
.a-graf .t { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; }
.a-graf .nombre { transition: opacity .3s; }
.a-graf .vivo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.06em; color: #8a939d; white-space: nowrap; }
.a-graf .vivo i { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 0 rgb(62 207 142 / .6); animation: a-pulso 2s infinite; }
@keyframes a-pulso { 70% { box-shadow: 0 0 0 7px rgb(62 207 142 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 207 142 / 0); } }
.a-graf .lienzo { position: relative; margin-top: 8px; transition: opacity .3s; }
.a-graf .lienzo.cambio, .a-graf .nombre.cambio { opacity: 0; }
.a-graf svg { display: block; width: 100%; height: auto; overflow: visible; }
.a-graf svg text { font-family: var(--f-mono); font-size: 10px; fill: #8a939d; }
.a-graf svg .dato { font-family: var(--f-display); font-size: 12px; font-weight: 600; fill: #fff; }
.a-graf .pie-graf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.a-graf .leyenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; line-height: 16px; color: #b4bcc5; }
.a-graf .leyenda span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.a-graf .leyenda i { width: 10px; height: 10px; border-radius: 2px; }
.a-graf .leyenda i.linea { height: 0; border-top: 2px dashed #b4bcc5; border-radius: 0; }
.a-graf .puntos { display: flex; gap: 6px; }
.a-graf .puntos button { width: 18px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: #45525e; cursor: pointer; }
.a-graf .puntos button.activo { background: var(--mp-primary); }
@media (prefers-reduced-motion: reduce) { .a-graf .vivo i { animation: none; } .a-graf .lienzo, .a-graf .nombre { transition: none; } }
.a-panel .copy { margin: auto 0 0; padding-top: 36px; font-family: var(--f-mono); font-size: 11px; line-height: 16px;
  letter-spacing: 0.04em; white-space: nowrap; color: #8a939d; }

@media (min-width: 640px) {
  .a-main { align-items: center; justify-content: center; padding: 40px 32px; }
  .a-fondo { display: block; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
    object-position: 72% 30%; background: #3a3f46; }
  .a-tarjeta { width: 440px; border-radius: 12px; padding: 45px 40px 40px; box-shadow: var(--mp-shadow-card); }
  .a-form { margin-top: 28px; }
  .a-opciones, .a-btn { margin-top: 20px; }
  .a-nota { margin-top: 26px; }
  .a-pie { margin-top: 24px; padding: 6px 16px; border-radius: 999px; background: rgb(31 40 50 / 0.6); color: rgb(255 255 255 / 0.8);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
@media (min-width: 1024px) {
  .a-pagina { display: grid; grid-template-columns: clamp(400px, 43.06%, 620px) minmax(0, 1fr); }
  .a-cabecera { display: none; }
  .a-main { grid-column: 2; grid-row: 1; min-height: 100dvh; position: sticky; top: 0; align-self: start; }
  .a-panel { display: flex; flex-direction: column; grid-column: 1; grid-row: 1; background: var(--mp-carbon); color: #fff;
    padding: 62px 24px 54px; }
  .a-panel > div { width: 100%; max-width: 490px; flex: 1; display: flex; flex-direction: column; }
  .a-panel .marca { margin-left: 8px; width: 370px; max-width: 100%; }
}
/* Con espacio suficiente, la tarjeta va a la izquierda para que se vea el técnico de la portada */
@media (min-width: 1200px) {
  .a-main { align-items: flex-start; padding-left: clamp(40px, 4vw, 72px); }
  .a-pie { align-self: flex-start; margin-left: 116px; }
  .a-fondo { object-position: 34% 28%; }
}
@media (min-width: 1280px) { .a-panel { padding-left: 48px; padding-right: 48px; } .a-kpis { gap: 10px; } .a-kpis li { padding-left: 14px; padding-right: 14px; }
  .a-kpis .e { letter-spacing: 0.1em; } .a-panel .copy { font-size: 12px; } }
@media (min-width: 1440px) { .a-panel { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1024px) and (max-height: 860px) { .a-panel { padding-top: 40px; padding-bottom: 24px; } .a-cmms { margin-top: 28px; }
  .a-kpis { margin-top: 24px; } .a-panel .copy { padding-top: 24px; } }
@media (min-width: 1024px) and (max-height: 800px) { .a-panel { padding-top: 24px; padding-bottom: 16px; } .a-cmms { margin-top: 18px; } .a-cmms .sigla { font-size: 52px; }
  .a-panel .texto { margin-top: 12px; } .a-kpis { margin-top: 16px; } .a-kpis li { padding-top: 14px; padding-bottom: 8px; } .a-graf { margin-top: 12px; padding-top: 12px; padding-bottom: 10px; } }
/* Código de verificación */
.a-codigo { font-family: var(--f-mono); font-size: 24px; letter-spacing: 0.4em; text-align: center; }
.a-reenviar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 18px;
  font-size: 14px; line-height: 20px; color: var(--mp-fg-2); }
.a-reenviar button { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--mp-primary-solido); cursor: pointer; }
.a-reenviar button:hover { color: var(--mp-primary-solido-hover); }
