/*
 * FormGuard: Hilfsstile. Der Honeypot traegt seine Verschiebung bewusst inline (Spezifikation 4.2), hier steht nur der Rest.
 */

/* Honeypot (4.2) fuer Seiten mit strenger CSP, die das Inline-Attribut verbieten (Option honeypotInlineStyle: false).
   Gleiche Verschiebung wie im verbindlichen Inline-Markup: aus dem Blickfeld, nicht per display:none. */
input[aria-hidden="true"][tabindex="-1"][autocomplete="off"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Autofill-Erkennung (4.4): Beim Autofill startet die Animation, form-guard.js hoert auf ihren Beginn.
   Zwei getrennte Regeln, weil ein unbekannter Selektor in einer Liste die ganze Regel verwirft. */
@keyframes fg-autofill-start {
    from { outline: 0 solid transparent; }
    to { outline: 0 solid transparent; }
}

input:-webkit-autofill {
    animation-name: fg-autofill-start;
    animation-duration: 1ms;
}

input:autofill {
    animation-name: fg-autofill-start;
    animation-duration: 1ms;
}

.fg-altcha {
    margin-block: 1rem;
}

.fg-altcha:focus {
    outline: none;
}

.fg-altcha:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
