body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

#app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Auth split-screen layout */
.auth-split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-image {
    background-image: url('../assets/bg3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-form {
    display: flex;
    flex-direction: column;
    background: white;
}

.auth-logo-header {
    display: flex;
    justify-content: center;
    padding: 40px 40px 20px 40px;
}

.auth-logo {
    max-width: 300px;
    height: auto;
}

.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px 40px 40px;
}

.auth-form-content {
    width: 100%;
    max-width: 400px;
}

/* Navbar and Drawer logos */
.navbar-logo {
    height: 40px;
    border-radius: 50px;
    width: auto;
}

.drawer-logo {
    max-width: 120px;
    height: auto;
}

/* Navbar background */
.mud-appbar {
    background-image: url('../assets/nav.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.mud-appbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/nav.png');
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    z-index: 0;
}

.mud-appbar > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .auth-split-screen {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }
    
    .auth-form {
        padding: 20px;
    }
}

/* Auth loader - centered spinner for auth state check */
.auth-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
