/* Iterruptivo — pantalla de login (aplica con cualquier tema) */

body:has(.page-content.user.signin),
body:has(.page-content.user.signup),
body:has(.page-content.user.forgot) {
  background:
    linear-gradient(115deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.70) 45%, rgba(10, 10, 15, 0.35) 100%),
    url("/assets/img/login-bg.jpg") center / cover no-repeat fixed,
    #0a0a0f;
  font-family: "Poppins", sans-serif;
}

/* Barra superior y pie translúcidos sobre la foto */
body:has(.page-content.user.signin) #navbar,
body:has(.page-content.user.signup) #navbar,
body:has(.page-content.user.forgot) #navbar,
body:has(.page-content.user.signin) .page-footer,
body:has(.page-content.user.signup) .page-footer,
body:has(.page-content.user.forgot) .page-footer {
  background: transparent !important;
  border-color: transparent !important;
}

.page-content.user.signin,
.page-content.user.signup,
.page-content.user.forgot {
  background: transparent;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

/* Marca encima del formulario */
.page-content.user.signin .column::before,
.page-content.user.signup .column::before {
  content: "";
  display: block;
  width: min(360px, 80%);
  aspect-ratio: 944 / 120;
  margin: 0 auto 0.25rem;
  background: url("/assets/img/wordmark.svg") center / contain no-repeat;
}
.page-content.user.signin .column::after,
.page-content.user.signup .column::after {
  content: "Iterativamente Disruptivo.";
  order: -1;
  text-align: center;
  color: #a3a3a0;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.page-content.user.signin .column > .ui.container,
.page-content.user.signup .column > .ui.container { order: 1; }
.page-content.user.signin .column::before { order: -2; }
.page-content.user.signup .column::before { order: -2; }

/* Tarjeta de cristal */
.page-content.user.signin .ui.container.fluid,
.page-content.user.signup .ui.container.fluid,
.page-content.user.forgot .ui.container.fluid {
  max-width: 460px;
  margin: 0 auto;
}
.page-content.user.signin .ui.attached.header,
.page-content.user.signup .ui.attached.header,
.page-content.user.forgot .ui.attached.header {
  background: rgba(17, 17, 19, 0.75);
  color: #f2f2f0;
  border-color: rgba(31, 242, 135, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 600;
}
.page-content.user.signin .ui.attached.segment,
.page-content.user.signup .ui.attached.segment,
.page-content.user.forgot .ui.attached.segment {
  background: rgba(17, 17, 19, 0.60);
  border-color: rgba(31, 242, 135, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(31, 242, 135, 0.06);
}
.page-content.user.signin .ui.form label,
.page-content.user.signin .ui.form .field,
.page-content.user.signup .ui.form label { color: #f2f2f0; }
.page-content.user.signin input,
.page-content.user.signup input,
.page-content.user.forgot input {
  background: rgba(10, 10, 15, 0.7) !important;
  color: #f2f2f0 !important;
  border-color: #242428 !important;
}
.page-content.user.signin input:focus,
.page-content.user.signup input:focus,
.page-content.user.forgot input:focus {
  border-color: #1ff287 !important;
  box-shadow: 0 0 0 3px rgba(31, 242, 135, 0.2) !important;
}
.page-content.user.signin a,
.page-content.user.signup a,
.page-content.user.forgot a { color: #1ff287; }

.page-content.user.signin .ui.primary.button,
.page-content.user.signup .ui.primary.button,
.page-content.user.forgot .ui.primary.button {
  background: linear-gradient(180deg, #1ff287, #07c199);
  color: #0a0a0f;
  font-weight: 600;
  border: none;
}
.page-content.user.signin .ui.primary.button:hover,
.page-content.user.signup .ui.primary.button:hover,
.page-content.user.forgot .ui.primary.button:hover {
  background: #5cf7ab;
  color: #0a0a0f;
}

@media (max-width: 640px) {
  body:has(.page-content.user.signin) { background-attachment: scroll; }
}

/* Sin HTTPS el navegador no permite passkeys y Gitea oculta el botón: ocultar también su recuadro vacío */
.page-content.user.signin .column > .ui.container.fluid:has(a.signin-passkey.tw-hidden):not(:has(#webauthn-error:not(.tw-hidden))) {
  display: none;
}
