/**
 * Hello Login Form Styles
 *
 * @package HelloRK
 */

/* ==========================================================================
   Container
   ========================================================================== */

.hello-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Form
   ========================================================================== */

.hello-login-form__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   Fields
   ========================================================================== */

.hello-login-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hello-login-form__field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.hello-login-form__label {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.hello-login-form__required {
    color: #c41e3a;
}

/* !important nötig, weil Themes wie DIVI generische input-/button-Styles über
   hoch-spezifische Selektoren (z. B. #page-container input) setzen, die unsere
   Klassen-Regeln sonst überstimmen — dadurch waren auf der DIVI-Seite Inputs
   zu rund und Buttons ohne Padding/Hintergrund. Auf Elementor-Seiten sind die
   Werte identisch, dort ändert !important also nichts. */
.hello-login-form__input {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box !important;
}

.hello-login-form__input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 5px 0px var(--hello-login-primary, var(--e-global-color-primary, #8bc34a));
}

.hello-login-form__input::placeholder {
    color: #9ca3af;
}

/* ==========================================================================
   Passwort sichtbar machen (Auge)
   ========================================================================== */

.hello-login-form__pw-wrap {
    position: relative;
    display: block;
}

/* Platz fuer das Auge, sonst laeuft der Text darunter durch. !important aus
   demselben Grund wie beim Input selbst: DIVI & Co. setzen Input-Padding ueber
   hoch-spezifische Selektoren (#page-container input). */
.hello-login-form__pw-wrap .hello-login-form__input {
    padding-right: 3rem !important;
}

/* Edge blendet an type="password" ein eigenes Auge ein — sonst stehen zwei
   nebeneinander, von denen nur eines zum Zustand des Buttons passt. */
.hello-login-form__pw-wrap .hello-login-form__input::-ms-reveal,
.hello-login-form__pw-wrap .hello-login-form__input::-ms-clear {
    display: none;
}

.hello-login-form__pw-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    /* `!important` wie bei den Nachbarzeilen: Elementors Kit-Stylesheet setzt
       `.elementor-kit-N button { color: … }` (Spezifitaet 0,1,1) und schlaegt
       eine reine Klassenregel. Auf ganzhier.de war das Auge dadurch weiss auf
       weissem Feld — vorhanden, anklickbar, unsichtbar. Das SVG erbt die Farbe
       ueber `currentColor`, hier steht sie also fuer beide. */
    color: #6b7280 !important;
    line-height: 0;
    cursor: pointer;
}

.hello-login-form__pw-toggle:hover,
.hello-login-form__pw-toggle:focus {
    background: none !important;
    color: #1a1a1a !important;
}

.hello-login-form__pw-toggle:focus-visible {
    outline: 2px solid var(--hello-login-primary, var(--e-global-color-primary, #8bc34a));
    outline-offset: -2px;
    border-radius: 0.5rem;
}

.hello-login-form__pw-icon {
    display: block;
    width: 20px;
    height: 20px;
}

/* Zustand steckt in der Klasse am Button, nicht im nachgebauten Markup:
   Standard zeigt das offene Auge ("anzeigen"), bei sichtbarem Passwort das
   durchgestrichene ("verbergen"). */
.hello-login-form__pw-toggle .hello-login-form__pw-icon--hide,
.hello-login-form__pw-toggle.is-visible .hello-login-form__pw-icon--show {
    display: none;
}

.hello-login-form__pw-toggle.is-visible .hello-login-form__pw-icon--hide {
    display: block;
}

/* ==========================================================================
   Checkbox
   ========================================================================== */

.hello-login-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
}

.hello-login-form__checkbox {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: #8bc34a;
}

.hello-login-form__link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
}

.hello-login-form__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hello-login-form__submit {
    display: block !important;
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    font-weight: 600 !important;
    color: var(--hello-login-button-text, #fff) !important;
    background-color: var(--hello-login-primary, var(--e-global-color-primary, #8bc34a)) !important;
    border: none; /* bewusst OHNE !important: lässt den Theme-Rahmen zu (oranger Rand auf ganzhier.de) */
    border-radius: 0.5rem !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.hello-login-form__submit:hover {
    background-color: var(--hello-login-secondary, var(--e-global-color-secondary, #1a1a1a)) !important;
}

.hello-login-form__submit:active {
    transform: scale(0.98);
}

.hello-login-form__submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.5);
}

/* ==========================================================================
   Privacy Notice
   ========================================================================== */

.hello-login-form__privacy-notice {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.hello-login-form__divider {
    display: flex;
    align-items: center;
    margin: 0;
}

.hello-login-form__divider::before,
.hello-login-form__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #bbb;
}

.hello-login-form__divider-text {
padding: 0 1rem;
font-size: 0.875rem;
color: #666;
}

.hello-login-form__pw_box {
display: flex;
gap: 20px;
background-color: #eee;
flex-direction: column;
padding: 20px;
border-radius: 0.5rem;
margin-top: 15px;
transition:all 0.5s;
}

.hello-login-form__pw_box.passwoerter {
	padding: 0px;
	background:#fff;
}


/* ==========================================================================
   Alternative Login
   ========================================================================== */

.hello-login-form__alternative {
    text-align: center;
}

.hello-login-form__alternative .hello-login-form__submit {
background: var(--hello-login-secondary, var(--e-global-color-secondary, #1a1a1a)) !important;
}

.hello-login-form__alternative .hello-login-form__submit:hover {
    background-color: var(--hello-login-primary, var(--e-global-color-primary, #8bc34a)) !important;
    color: var(--hello-login-button-text, #fff) !important;
    text-decoration: none;
}

.hello-login-form__pw-hint,
.hello-login-form__pw-hint-text {
    line-height: 1.5em;
}

.hello-login-form__pw-hint-text {
    margin-top: -15px;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.hello-login-form__error,
.hello-login-form__success,
.hello-login-form__info {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.hello-login-form__error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hello-login-form__success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.hello-login-form__info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ==========================================================================
   Welcome State
   ========================================================================== */

.hello-login-form--welcome {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
}

.hello-login-form.hello-login-form--welcome p {
	margin: 5px;
}

.hello-login-form__password-link {
	border-top: 1px solid #ddd;
	margin-top: 0 !important;
	padding-top: 3px;
}

.hello-login-form__message {
    font-size: 1.125rem;
    color: #374151;
    margin: 0 0 1rem 0;
}

.hello-login-form__logout-link {
    background: var(--hello-login-primary, var(--e-global-color-primary, #8bc34a));
    color: var(--hello-login-button-text, #fff) !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.hello-login-form__logout-link:hover {
    text-decoration: none;
    filter: brightness(1.15);
}

/* ==========================================================================
   Name Form
   ========================================================================== */

.hello-login-form--name .hello-login-form__welcome-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* ==========================================================================
   Success/Message States
   ========================================================================== */

.hello-login-form--success,
.hello-login-form--message {
    text-align: center;
}

.hello-login-form--success .hello-login-form__success,
.hello-login-form--message .hello-login-form__info {
    margin-bottom: 0;
}

/* Codefeld nach dem Absenden der Adresse (ab 5.48): gelber Kasten
   „Nächster Schritt“, das Codefeld zwischen seinen beiden Absätzen. */
.hello-login-form--code {
    text-align: center;
}

.hello-login-form--code .hello-login-form__error {
    margin-bottom: 1rem;
    text-align: left;
}

.hello-login-form__next {
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 0.5rem;
    background-color: #fff7d6;
    border: 1px solid #f2d36b;
    color: #3d3000;
    font-size: 0.9375rem;
    line-height: 1.6;
    text-align: left;
}

.hello-login-form__next-text {
    margin: 0 0 1rem;
}

.hello-login-form__wait {
    margin: 0 0 1rem;
    font-weight: 600;
}

.hello-login-form__next-text:last-child {
    margin-bottom: 0;
}

.hello-login-form__next .hello-login-form__code-form {
    margin: 0 0 1rem;
}

.hello-login-form__next .hello-login-form__submit {
    margin-top: 0;
}

/* Nur für Screenreader (Beschriftung des Codefelds) */
.hello-login-form__sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Das Formular ist eine Flex-Spalte mit 15px Abstand — kein eigener Abstand nötig */
.hello-login-form__code-wrap {
    position: relative;
    width: 100%;
    max-width: 21rem;
    margin: 0 auto;
}

/* Ohne JavaScript: ein normales Feld, die Kästchen fehlen */
.hello-login-form .hello-login-form__code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-family: "Courier New", Courier, monospace;
}

.hello-login-form__code-boxes {
    display: none;
}

/* Mit JavaScript (Klasse am <html>, gesetzt von hello-login-code.js): sechs
   Kästchen zeigen die Ziffern, das echte Feld liegt unsichtbar darüber und
   nimmt Tippen, Einfügen und Autofill entgegen. Die !important halten
   Theme-Regeln für input (s. oben) fern.
   NUR innerhalb von .hello-login-form__code-wrap: Das Bestätigungscode-Feld
   im Passwort-Formular trägt dieselbe Feldklasse, hat aber keinen Rahmen
   mit position:relative. In 5.49 griff die Regel auch dort, und das Feld lag
   unsichtbar über der ganzen Seite (position:absolute zum Viewport, 100 %
   breit und hoch) — jeder Klick landete darin, kein Knopf war erreichbar. */
.hello-rk-code-js .hello-login-form__code-boxes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hello-rk-code-js .hello-login-form .hello-login-form__code-wrap .hello-login-form__code-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    color: transparent !important;
    background: transparent !important;
    caret-color: transparent;
    font-size: 16px; /* unter 16px zoomt iOS beim Antippen hinein */
    letter-spacing: normal;
    box-shadow: none !important;
}

.hello-login-form__code-box {
    flex: 0 1 3rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #fff;
    border: 2px solid #d6c27a;
    border-radius: 0.5rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.hello-login-form__code-box.is-voll {
    border-color: #8a7420;
}

.hello-login-form__code-box.is-aktiv {
    border-color: var(--hello-login-primary, var(--e-global-color-primary, #8bc34a));
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.25);
}

/* Blinkende Schreibmarke im nächsten leeren Kästchen */
.hello-login-form__code-box.is-aktiv:empty::after {
    content: "";
    width: 2px;
    height: 1.6rem;
    background-color: #1a1a1a;
    animation: hello-login-caret 1s steps(1) infinite;
}

@keyframes hello-login-caret {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hello-login-form__code-box.is-aktiv:empty::after {
        animation: none;
    }
}

@media (max-width: 380px) {
    .hello-login-form__code-boxes {
        gap: 0.35rem;
    }
    .hello-login-form__code-box {
        height: 3rem;
        font-size: 1.5rem;
    }
}

/* „wird nach der sechsten Ziffer automatisch abgeschickt“ — Teil der
   Screenreader-Beschriftung, aber nur, wenn das Skript läuft und wirklich
   von selbst abschickt (ab 5.50) */
.hello-login-form__code-auto {
    display: none;
}

.hello-rk-code-js .hello-login-form__code-auto {
    display: inline;
}

/* Abgeschickt (mit der sechsten Ziffer oder per Knopf): bis die nächste
   Seite kommt, ist der Knopf gesperrt */
.hello-login-form__code-form[data-hrk-gesendet] .hello-login-form__submit {
    opacity: 0.6;
    cursor: progress;
}

/* Nach 15 Minuten ohne Eingabe (hello-login-code.js): steht anstelle von
   Kästchen und Knopf */
.hello-login-form__code-expired {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #fff;
    border: 1px solid #f2d36b;
    font-weight: 600;
}

.hello-login-form__code-expired[hidden] {
    display: none !important;
}

.hello-login-form__code-other .hello-login-form__back-link {
    margin-top: 0.75rem;
}

/* ==========================================================================
   Password Change Link
   ========================================================================== */

.hello-login-form__password-link {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.hello-login-form__password-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* ==========================================================================
   Password Form
   ========================================================================== */

.hello-login-form--password .hello-login-form__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    text-align: center;
}

.hello-login-form__security-hint {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border-left: 3px solid var(--hello-login-primary, var(--e-global-color-primary, #8bc34a));
    border-radius: 0.25rem;
}

.hello-login-form__password-strength {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    min-height: 1.2em;
}

.hello-login-form__password-strength.hello-pw-very-weak {
    color: #991b1b;
}

.hello-login-form__password-strength.hello-pw-weak {
    color: #b45309;
}

.hello-login-form__password-strength.hello-pw-medium {
    color: #a16207;
}

.hello-login-form__password-strength.hello-pw-strong {
    color: #166534;
}

.hello-login-form__back-link {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 20px;
	display: block;
}

.hello-login-form__back-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .hello-login-form {
        padding: 0 1rem;
    }

    .hello-login-form__input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .hello-login-form__submit,
    .hello-login-form__classic-login {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Zwei-Faktor-Bereich (Rollen ohne Backend-Zugang verwalten ihre Verfahren
   hier, nicht in wp-admin). Die drei Wege stehen in Reitern: alle drei
   gleichzeitig ausgeklappt waren zwei Bildschirme mit einem QR-Code
   mittendrin. Eingabefelder, Knoepfe und Meldungen erben die Regeln oben,
   damit der Bereich zum Formular passt.
   ========================================================================== */

.hello-login-form--2fa .hello-login-form__title {
    margin-bottom: 0.5rem;
}

/* Reiter: Links, kein JavaScript — ein Reiter ueberlebt damit das Absenden
   eines Formulars und den Zurueck-Knopf.

   Als Schalterleiste (heller Trog, aktiver Reiter als weisse Karte) statt als
   klassische Karteireiter mit „Zahn": der Zahn braucht eine Kante, die genau
   zum Rahmen des Inhalts passt, und in einem fremden Theme mit eigenen
   Rahmenfarben bricht das sichtbar auf. */
.hello-login-form__2fa-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 1rem 0 0;
    padding: 0.25rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem 0.5rem 0 0;
}

.hello-login-form__2fa-tab {
    flex: 1 1 0;
    padding: 0.55rem 0.4rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hello-login-form__2fa-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1a1a1a !important;
}

.hello-login-form__2fa-tab.is-active {
    background: #fff;
    color: #1a1a1a !important;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Der Inhalt gehoert sichtbar zur Leiste darueber — ohne eigene Flaeche
   schwimmt er im Formular und man sieht dem Reiter nicht an, was er
   umschaltet. */
.hello-login-form__2fa-panel {
    padding: 1.1rem;
    /* -1px statt 0: beide Kaesten tragen einen 1px-Rahmen, aneinandergesetzt
       ergaebe das an der Naht eine doppelt so dicke Linie wie aussen herum. */
    margin-top: -1px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 0.5rem 0.5rem;
}

.hello-login-form__2fa-panel > .hello-login-form__form > :first-child,
.hello-login-form__2fa-panel .hello-login-form__message:first-child {
    margin-top: 0;
}

.hello-login-form__hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.35rem 0 0.6rem;
}

.hello-login-form__2fa-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.9rem;
}

.hello-login-form__2fa-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
}

/* Der QR-Code hat eine eigene Groesse (Modul-Pixel im SVG) und wuerde sonst
   die ganze Spaltenbreite fuellen. */
.hello-login-form__2fa-qr {
    text-align: center;
    margin: 0.75rem 0;
    line-height: 0;
}

.hello-login-form__2fa-qr svg {
    width: 180px;
    height: auto;
    max-width: 100%;
}

.hello-login-form__2fa-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem !important;
}

/* Ein Knopf, der wie ein Link aussehen soll. Themes stylen jedes <button>
   (Elementors Kit trifft mit `.elementor-kit-N button` auch dieses hier),
   deshalb die vollstaendige Ruecknahme mit !important — background allein
   genuegt nicht, background-color und width kommen aus derselben Regel. */
.hello-login-form--2fa button.hello-login-form__linkbutton {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    color: #6b7280 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.hello-login-form--2fa button.hello-login-form__linkbutton:hover {
    color: #b32d2e !important;
}

/* ==========================================================================
   Zwei-Faktor-Panel im fremden Layout (`[hello_rk_2fa]`)
   ==========================================================================

   `.hello-login-form` ist auf das Anmeldeformular gemuenzt: 400px breit und
   zentriert. In einem Dashboard-Panel ist das falsch — dort steht der Kasten
   dann schmal und aus der Achse gerutscht neben einem breiten Formular, waehrend
   alles darueber die volle Spalte nutzt. Der Shortcode setzt deshalb
   `--imhaus`: volle Breite, linksbuendig, ohne eigenen Rahmen. Der Bereich im
   Anmeldeformular (`?hello_rk_2fa=1`) traegt die Klasse NICHT und bleibt, wie
   er ist. */

.hello-login-form--imhaus {
    max-width: none;
    margin: 0;
    /* `width` ausdruecklich: in einem Flex- oder Grid-Container schrumpft
       ein Kind ohne Breitenangabe auf seinen Inhalt und rutscht an den
       Rand — genau so stand der Kasten im Dashboard rechts neben einer
       leeren Flaeche, waehrend alles darueber die volle Spalte nutzte. */
    width: 100%;
    box-sizing: border-box;
}

/* Die Ueberschrift des Panels ordnet sich dem Theme unter: das Dashboard setzt
   die Abstaende zwischen seinen Bloecken, hier braucht es nur noch den Titel. */
.hello-login-form--imhaus .hello-login-form__title {
    margin-top: 0;
}

/* Ein Nebenweg, kein Hauptweg: der Knopf zum iCloud Schlüsselbund bietet EINE
   von mehreren Möglichkeiten an, den Schlüssel in eine App zu bekommen. Über
   die volle Breite gezogen läse er sich als DER Weg — auf einem Telefon, wo
   man den QR-Code bequem mit einer zweiten Kamera scannt, ist er das gerade
   nicht. Die `!important` spiegeln die Basisregel darüber; ohne sie gewönne
   die (gleich spezifische, aber früher notierte) Deklaration von
   `.hello-login-form__submit`. */
.hello-login-form__submit--klein {
    display: inline-block !important;
    width: auto !important;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.92em !important;
    text-decoration: none;
}

/* Der Haken am eingerichteten Verfahren: grün wie das „✓ Eingerichtet" im
   Reiter selbst, und hinter dem Namen — davor läse man erst ein Zeichen und
   dann das Wort, und die Reiter stünden unterschiedlich weit eingerückt. */
.hello-login-form__2fa-haken {
    color: #007a2f;
    font-weight: 700;
}

/* ==========================================================================
   Das Panel arbeitet
   ==========================================================================

   Vorher wurde nur die Deckkraft gesenkt. Das sieht aus wie „ausgegraut" —
   also nach einem gesperrten Bereich, nicht nach einem laufenden Vorgang; bei
   einer langsamen Verbindung weiß man nicht einmal, ob der Klick angekommen
   ist. Der laufende Kreis sagt beides. `pointer-events` sperrt derweil weitere
   Klicks, damit nicht zwei Anfragen gleichzeitig unterwegs sind. */

.hello-login-form--2fa.is-laedt {
    position: relative;
    opacity: 0.55;
    pointer-events: none;
}

.hello-login-form--2fa.is-laedt::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--hello-login-primary, var(--e-global-color-primary, #8bc34a));
    border-radius: 50%;
    animation: hello-login-dreht 0.8s linear infinite;
}

@keyframes hello-login-dreht {
    to { transform: rotate(360deg); }
}

/* Wer Bewegung abbestellt hat, bekommt keine — der Kreis bleibt stehen und
   sagt immer noch, dass hier etwas läuft. */
@media (prefers-reduced-motion: reduce) {
    .hello-login-form--2fa.is-laedt::after { animation: none; }
}
