﻿:root {
    --vz-vertical-menu-bg: #27436c !important;
    /*--vz-primary-color: #3eb21b !important;*/
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #27436c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Auth pages (BlankLayout) ===== */

/*
 * Login / forgot password / reset password render in BlankLayout, which has no topbar
 * and no sidebar. Velzon's .main-content, .page-content and .footer rules assume both
 * are present - .main-content and .footer are each offset by the vertical menu width,
 * so the sidebar gap is reserved twice, .page-content reserves ~94px of header padding
 * at the top, and .footer is position:absolute, which anchors it to the bottom of the
 * viewport instead of the content. The shell below replaces them: a full-height flex
 * column that centres the card and keeps the footer in normal flow underneath it.
 */
.auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-shell-body {
    flex: 1 0 auto;
    display: flex;
    padding: 1.5rem 0.75rem;
}

/* auto margins centre the page vertically without clipping it when it outgrows the
   viewport, which align-items:center would do. */
.auth-shell-body > * {
    width: 100%;
    margin: auto 0;
}

.auth-shell-footer {
    flex: 0 0 auto;
    padding: 20px 0.75rem;
}

/* Velzon reserves 60px here for the position:absolute footer described above. This shell
   renders the footer in normal flow instead, so that padding is dead space: it pushes the
   card above the optical centre and makes the page overflow - and so lose the auto margins
   that centre it - 60px earlier than it should, pinning the logo to the top of the window. */
.auth-shell .auth-page-content {
    padding-bottom: 0;
}

/* Blazor's form validation. Without this a rejected field looks unchanged and its message reads as
   ordinary text, so the submit button appears to do nothing. */
.validation-message {
    color: var(--vz-danger);
    font-size: 12px;
    margin-top: 5px;
}

.form-control.invalid {
    border-color: var(--vz-danger);
}
