/* Submit-progress indicator for static (SSR) account forms.
   submitIndicator.js adds `is-submitting` to a <form data-submit-indicator> on submit;
   these rules swap the button's idle label for the "working" label + spinner and
   soft-lock the inputs. Interactive (InteractiveServer) forms use a C# IsSubmitting
   flag instead and do not rely on this file. */

.submit-indicator-wrap { display: none; }
.is-submitting .submit-indicator-wrap { display: inline-flex; align-items: center; opacity: 1; }
.is-submitting .submit-idle-label { display: none; }
.submit-submitting-label { display: none; }
.is-submitting .submit-submitting-label { display: inline; }

/* Lock fields on submit without setting the disabled attribute, which would drop values from the POST payload. */
.is-submitting input,
.is-submitting textarea,
.is-submitting select {
    pointer-events: none;
    opacity: 0.6;
}

/* Full-screen busy overlay for the login submit (Login.razor).

   The scrim recipe itself (geometry, dim level, stacking) comes from the shared
   .fullscreen-scrim class in site.css, carried on the overlay element — the
   rules here only reveal it while `is-submitting` is on the form. */
.login-busy-overlay {
    display: none;
}

.is-submitting .login-busy-overlay {
    display: flex;
    flex-direction: column;
}

.login-busy-label {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.1rem;
}
