/* ============================================================
   DANGELS PRINT STUDIO — VERIFICACIÓN DE ACCESO
   La pantalla de credenciales es la única pantalla visible al
   abrir la página. El proyecto se muestra únicamente después
   de una autenticación correcta.
   ============================================================ */

html,
body {
  min-height: 100%;
  margin: 0;
}

/* El proyecto permanece completamente oculto mientras no haya autenticación. */
#protected-app {
  display: none;
  min-height: 100vh;
}

/* Pantalla inicial de verificación. */
#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 24px;
  background: #09090b;
  font-family: inherit;
}

/* Cuando auth.js valida correctamente, se muestra únicamente el proyecto. */
html.authenticated #protected-app,
body.authenticated #protected-app {
  display: block;
}

html.authenticated #auth-gate,
body.authenticated #auth-gate {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(17,17,20,.96);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  box-sizing: border-box;
}

.auth-brand {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 15px;
  color: #fff;
}

.auth-brand span {
  color: #9ca3af;
  font-weight: 600;
}

.auth-kicker {
  margin: 32px 0 8px;
  font-size: 11px;
  letter-spacing: .16em;
  color: #e11d48;
  font-weight: 800;
}

.auth-card h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
}

.auth-description {
  margin: 10px 0 24px;
  color: #9ca3af;
  line-height: 1.5;
}

.auth-field {
  display: block;
  margin-bottom: 16px;
}

.auth-field span {
  display: block;
  margin-bottom: 7px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 700;
}

.auth-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #2a2a2f;
  border-radius: 10px;
  background: #0f0f12;
  color: #fff;
  outline: none;
}

.auth-field input:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225,29,72,.13);
}

.auth-error {
  min-height: 20px;
  margin: 4px 0 10px;
  color: #fb7185;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: #e11d48;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(1.08);
}
