/* Shared SABS logo styling for every auth screen (login, register, forgot/reset
   password, invitations, etc.). Width-based sizing so the landscape wordmark
   scales cleanly on desktop and mobile without distortion. Register uses the
   --compact modifier to keep its "Create Account" heading dominant. */
.login-logo {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
}

.login-logo--compact {
    max-width: 240px;
}

@media (max-width: 600px) {
    .login-logo {
        max-width: 200px;
    }

    .login-logo--compact {
        max-width: 180px;
    }
}


/* Shared styling for text inputs on auth screens */
.cims-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 4px;
    background-color: var(--mud-palette-background);
    font-family: var(--mud-typography-default-family, "Roboto", sans-serif);
    font-size: 0.875rem;
}

/* Styling for the <select> used for User Type */
.cims-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 4px;
    background-color: var(--mud-palette-background);
    font-family: var(--mud-typography-default-family, "Roboto", sans-serif);
    font-size: 0.875rem;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

    /* Focus states */
    .cims-input:focus,
    .cims-select:focus {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: 1px;
    }

    /* Optional: error highlighting on border if you like */
    .cims-input.validation-error,
    .cims-select.validation-error {
        border-color: var(--mud-palette-error);
    }


/* SPLASH SCREEN STYLES */
#app-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f8f9fa; /* Light grey background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

.loading-progress-text {
    margin-top: 20px;
    color: #594ae2; /* Your Primary Color */
    font-size: 1.2rem;
    font-weight: 500;
}

/* A simple CSS Spinner */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ring div {
        box-sizing: border-box;
        display: block;
        position: absolute;
        width: 64px;
        height: 64px;
        margin: 8px;
        border: 8px solid #594ae2;
        border-radius: 50%;
        animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        border-color: #594ae2 transparent transparent transparent;
    }

        .lds-ring div:nth-child(1) {
            animation-delay: -0.45s;
        }

        .lds-ring div:nth-child(2) {
            animation-delay: -0.3s;
        }

        .lds-ring div:nth-child(3) {
            animation-delay: -0.15s;
        }

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Push snackbar notifications below the top navbar (MudAppBar = 64px) */
.mud-snackbar-location-top-right,
.mud-snackbar-location-top-left,
.mud-snackbar-location-top-center {
    top: 72px !important;
}

/* Fix for MudTabs badge clipping */
.mud-tabs-header {
    overflow: visible !important;
}

.mud-tab {
    overflow: visible !important;
    padding-right: 24px !important;
}

.mud-tabs-toolbar {
    overflow: visible !important;
}

.mud-tabs-toolbar-content {
    overflow: visible !important;
}