/* La pantalla de acceso. Sin librerías: es un formulario, y un formulario no necesita un marco. */
:root {
  --fondo: #070b14;
  --panel: #101828;
  --borde: #243149;
  --texto: #e8eef7;
  --tenue: #8fa6c4;
  --acento: #4c8dff;
  --error: #ff8080;
  --bien: #67d69a;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 24px 16px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 700px at 50% -10%, #16203a 0%, var(--fondo) 60%);
  color: var(--texto);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.acceso { width: 100%; max-width: 420px; }
header { text-align: center; margin-bottom: 22px; }
h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: .02em; }
.lema { margin: 6px 0 0; color: var(--tenue); font-size: 14px; }

.tarjeta {
  background: var(--panel); border: 1px solid var(--borde); border-radius: 14px;
  padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

.pestanas { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--borde); }
.pestanas button {
  flex: 1; padding: 9px 4px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--tenue); font: inherit; cursor: pointer;
}
.pestanas button[aria-selected="true"] { color: var(--texto); border-bottom-color: var(--acento); }
.pestanas button:hover { color: var(--texto); }

label { display: block; margin: 12px 0 5px; font-size: 13px; color: var(--tenue); }
label:first-child { margin-top: 0; }
.pista { color: #6f86a4; font-weight: 400; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--borde); background: #0a1120; color: var(--texto); font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--acento); outline-offset: 2px;
}
.casilla { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--tenue); }
.casilla input { width: auto; }

button.principal {
  width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 8px;
  background: var(--acento); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
button.principal:hover { background: #3f7ce8; }
button.principal:disabled { opacity: .55; cursor: progress; }

.menor { margin: 14px 0 0; font-size: 13px; color: var(--tenue); text-align: center; }
a { color: var(--acento); }

.separador { position: relative; margin: 22px 0 14px; text-align: center; }
.separador::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--borde);
}
.separador span { position: relative; padding: 0 10px; background: var(--panel); color: var(--tenue); font-size: 13px; }

.proveedores { display: grid; gap: 8px; }
.proveedores button {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px; border: 1px solid var(--borde); border-radius: 8px;
  background: #0a1120; color: var(--texto); font: inherit; cursor: pointer;
}
.proveedores button:hover { border-color: #33517f; background: #0d1628; }
.proveedores svg { width: 18px; height: 18px; flex: none; }

#aviso { margin: 16px 0 0; font-size: 14px; min-height: 1.2em; }
#aviso.error { color: var(--error); }
#aviso.bien { color: var(--bien); }
#aviso:empty { margin: 0; min-height: 0; }

footer { margin-top: 16px; text-align: center; color: #5b708d; font-size: 12px; }

/* Quien prefiera menos movimiento, que no lo tenga. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* El aviso de cuenta ya existente. Grande y en medio: es la respuesta a una acción que la persona
   acaba de hacer, y un párrafo pequeño al pie de la tarjeta se le pasaba por alto. */
dialog {
  max-width: 440px; padding: 26px; border: 1px solid var(--borde); border-radius: 14px;
  background: var(--panel); color: var(--texto);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(3, 6, 12, .74); }
dialog h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.25; }
dialog h2.bien { color: var(--bien); }
dialog h2.mal { color: var(--error); }
dialog p { margin: 0 0 10px; color: var(--texto); font-size: 15.5px; }
dialog #dlgComo { color: var(--tenue); }
.dlgBotones { display: grid; gap: 8px; margin-top: 18px; }
.dlgBotones button.principal { margin-top: 0; }
button.secundario {
  padding: 10px; border: 1px solid var(--borde); border-radius: 8px;
  background: none; color: var(--tenue); font: inherit; cursor: pointer;
}
button.secundario:hover { color: var(--texto); border-color: #33517f; }
