/* Acercade · presentación del formulario nativo Authelia 4.39.26. */
body:has(#first-factor-stage), body:has(#second-factor-stage) {
  --ac-page: #0d1119;
  --ac-panel: #171e29;
  --ac-ink: #f2f5fb;
  --ac-muted: #a8b5ca;
  --ac-border: #303e53;
  --ac-field: #111824;
  --ac-blue: #9abbff;
  --ac-button-ink: #101f3b;
  background: radial-gradient(ellipse at 50% 0%, #182845, transparent 65%), var(--ac-page) !important;
  background-attachment: fixed !important;
  color: var(--ac-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:is(#first-factor-stage, #second-factor-stage) {
  min-height: 85svh !important;
  height: auto !important;
  padding: 32px 16px 48px;
  align-items: center;
  color: var(--ac-ink);
}
:is(#first-factor-stage, #second-factor-stage) > div:first-child {
  width: 100% !important;
  max-width: 410px !important;
  padding: 32px !important;
  border: 1px solid var(--ac-border);
  border-radius: 20px;
  background: var(--ac-panel);
  box-shadow: 0 16px 50px #00000035;
}
:is(#first-factor-stage, #second-factor-stage) > div:first-child > div {
  text-align: left;
}
:is(#first-factor-stage, #second-factor-stage) img[src$="logo.png"] {
  content: url("./wordmark.png");
  display: block;
  width: 190px !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 0 28px !important;
}
:is(#first-factor-stage, #second-factor-stage) div:has(> img[src$="logo.png"]) {
  padding: 0 !important;
}
:is(#first-factor-stage, #second-factor-stage) h5 {
  font-size: 25px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.6px;
  margin: 0 0 12px;
  color: var(--ac-ink);
}
#form-login > div { gap: 18px; }
#form-login div:has(> input[data-slot="floating-input"]) {
  display: flex;
  flex-direction: column-reverse;
  gap: 7px;
}
#form-login label[for="username-textfield"],
#form-login label[for="password-textfield"] {
  position: static !important;
  transform: none !important;
  translate: none !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 20px;
  color: var(--ac-ink);
}
#form-login input[data-slot="floating-input"] {
  height: 48px;
  border: 1px solid var(--ac-border);
  border-radius: 9px;
  background: var(--ac-field);
  color: var(--ac-ink);
  padding: 12px 13px;
  font-size: 16px;
  line-height: 22px;
}
#form-login #password-textfield { padding-right: 48px; }
#form-login > div > div:has(#password-textfield) > button {
  top: auto !important;
  bottom: 2px !important;
  right: 4px !important;
  transform: none !important;
  translate: none !important;
  min-width: 44px;
  height: 44px;
  color: var(--ac-muted);
}
#form-login input[data-slot="floating-input"]:focus-visible {
  border-color: var(--ac-blue);
  outline: 2px solid #9abbff80;
  outline-offset: 2px;
}
#form-login input[aria-invalid="true"] { border-color: #ff9797; }
#form-login input[aria-invalid="true"] + label { color: #ffb0b0; }
#form-login > div > div:has(> #reset-password-button) {
  order: 20;
  margin: -5px 0 0;
}
#form-login > div > div:has(> #sign-in-button) { order: 30; }
#reset-password-button {
  padding: 0 0 2px !important;
  min-height: 36px;
  color: var(--ac-blue);
  font-size: 14px;
}
#sign-in-button {
  background: var(--ac-blue);
  color: var(--ac-button-ink);
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}
#sign-in-button:hover:not(:disabled) { background: #b1caff; }
#sign-in-button:disabled { opacity: .55; cursor: not-allowed; }
:is(#first-factor-stage, #second-factor-stage) a[href*="authelia.com"] {
  color: var(--ac-muted) !important;
  font-size: 12px !important;
  white-space: normal;
}
:is(#first-factor-stage, #second-factor-stage) div:has(> a[href*="authelia.com"]) {
  border-top: 1px solid var(--ac-border);
  padding-top: 20px;
  margin-top: 20px;
}
#second-factor-stage div:has(> #one-time-password-method),
#second-factor-stage div:has(> #webauthn-method),
#second-factor-stage div:has(> #password-method),
#second-factor-stage div:has(> #push-notification-method) {
  min-width: 0 !important;
  width: 100%;
  padding: 16px 0 !important;
  border: 0 !important;
}
#second-factor-stage h6 { color: var(--ac-ink); }
#second-factor-stage input { color: var(--ac-ink); }
#second-factor-stage #otp-input { display: block; width: 100%; }
#second-factor-stage #otp-input :has(> input) {
  display: flex;
  width: 100%;
  gap: 6px;
  justify-content: center;
}
#second-factor-stage #otp-input input {
  flex: 1 1 0;
  min-width: 0 !important;
  width: 0 !important;
  max-width: 40px;
  height: 44px !important;
  margin: 0 !important;
  border: 1px solid #617495;
  border-radius: 8px;
  background: var(--ac-field);
  text-align: center;
  font-size: 18px;
}
#second-factor-stage #otp-input input:focus-visible {
  outline: 2px solid var(--ac-blue);
  outline-offset: 2px;
}
#second-factor-stage #otp-input input[aria-invalid="true"] { border-color: #ff9797; }
@media (max-width: 380px) {
  :is(#first-factor-stage, #second-factor-stage) { padding: 20px 12px 32px; }
  :is(#first-factor-stage, #second-factor-stage) > div:first-child { padding: 25px 20px !important; }
  :is(#first-factor-stage, #second-factor-stage) h5 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#first-factor-stage, #second-factor-stage) * { transition: none !important; }
}
