/* Styling for the Account pages' native <InputText>/<InputCheckbox> elements.
   These pages run static SSR (no Blazor circuit) so SignInManager can write the auth
   cookie - MudBlazor's form fields require an active circuit and don't render the
   name= attributes ASP.NET Core's [SupplyParameterFromForm] binding needs, so native
   Blazor form components are used here instead, hand-styled to match the MudBlazor
   look used everywhere else in the app. */

.account-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: 1px solid var(--mud-palette-lines-inputs, rgba(0, 0, 0, 0.23));
    border-radius: var(--mud-default-borderradius, 4px);
    font-family: var(--mud-typography-default-family, Roboto, sans-serif);
    font-size: 1rem;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
}

.account-field:focus {
    outline: none;
    border-color: var(--mud-palette-primary, #594AE2);
    border-width: 2px;
    padding: 9px 11px;
}

.account-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.6));
}

.account-field-group {
    margin-bottom: 1rem;
}

.account-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: var(--m3-shape-full, 9999px);
    background: var(--mud-palette-primary, #594AE2);
    color: var(--mud-palette-primary-text, #fff);
    font-family: var(--mud-typography-default-family, Roboto, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.account-submit-button:hover {
    filter: brightness(0.92);
}

/* Non-full-width variant - the Manage/Profile page's Save/Upload buttons don't want to
   span the whole panel like Login/Register's do. */
.account-submit-button--auto {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.account-panel {
    border-radius: var(--m3-shape-lg);
    box-shadow: var(--m3-elevation-1);
}

/* My Profile's Appearance panel - three plain <button>s (not MudButton, same reasoning as
   every other static-SSR form control on this page) styled as a segmented control, the
   active preference filled solid so it reads at a glance without needing a checkmark. */
.account-theme-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-theme-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--mud-palette-lines-inputs, rgba(0, 0, 0, 0.23));
    border-radius: var(--m3-shape-full, 9999px);
    background: transparent;
    color: var(--mud-palette-text-primary, rgba(0, 0, 0, 0.87));
    font-family: var(--mud-typography-default-family, Roboto, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.account-theme-option:hover {
    background: var(--m3-primary-container);
}

.account-theme-option--active {
    background: var(--m3-primary);
    border-color: var(--m3-primary);
    color: var(--m3-on-primary);
}

.account-theme-option--active:hover {
    background: var(--m3-primary);
}
