.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



        .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 ease-in-out;
        }



code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

html, body {
    background-color: #0F0F23;
    color: #FFFFFF;
}

body {
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

.mud-main-content {
    background-color: #0F0F23 !important;
}

.mud-paper {
    border: 1px solid #2C2C54;
}

.mud-table-container {
    border-radius: 14px;
}

.mud-nav-link {
    border-radius: 10px;
    margin: 4px 8px;
}

.mud-button-root {
    text-transform: none !important;
    font-weight: 600;
}

.store-card {
    background: #12172A;
    border: 1px solid #1E2740;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

    .store-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(0,0,0,.28);
        border-color: #2C2C54;
    }

.store-icon-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.store-description {
    color: #B8B8D1;
    min-height: 56px;
    line-height: 1.7;
}

.store-action-btn {
    text-transform: none !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
}

/* ====== VillaDenti Startup Loader ====== */

.startup-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 30%, #1a1e3a 0%, #0c0e1e 100%);
}

.startup-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 48px;
    border-radius: 24px;
    background: #11152a;
    border: 1px solid rgba(100, 110, 200, 0.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

    .startup-loading-card::before {
        content: '';
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(100, 90, 255, 0.13) 0%, transparent 70%);
        pointer-events: none;
    }

/* Logo wrapper with spinning rings */
.startup-logo-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.startup-loading-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 20px;
    background: #1d2140;
    border: 1px solid rgba(100, 110, 200, 0.22);
    padding: 10px;
    box-sizing: border-box;
    animation: floatLogo 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.startup-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: #7c6fff;
    border-right-color: #00c9f0;
    animation: spin 1.4s linear infinite;
}

.startup-ring2 {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(124, 111, 255, 0.3);
    border-left-color: rgba(0, 201, 240, 0.15);
    animation: spinReverse 2.2s linear infinite;
}

/* Progress bar */
.startup-bar-wrap {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
}

.startup-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #7c6fff, #00c9f0);
    animation: loadBar 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Dots */
.startup-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.startup-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(124, 111, 255, 0.3);
    animation: pulseDot 1.4s ease-in-out infinite;
}

    .startup-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .startup-dot:nth-child(2) {
        animation-delay: 0.18s;
        background: rgba(80, 190, 240, 0.3);
    }

    .startup-dot:nth-child(3) {
        animation-delay: 0.36s;
    }

.startup-loading-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #e8eaf4;
    text-align: center;
}

.startup-loading-subtitle {
    font-size: 0.85rem;
    color: #7a7fa3;
    text-align: center;
    margin-top: -10px;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(1) scale(1);
    }
}

@keyframes pulseDot {
    0%, 80%, 100% {
        transform: scale(0.75);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loadBar {
    0% {
        width: 0%;
        margin-left: 0%;
    }

    50% {
        width: 70%;
        margin-left: 15%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* ====== VillaDenti Login ====== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

.vd-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050810;
    overflow: hidden;
    position: relative;
    font-family: 'DM Sans', sans-serif;
}

.vd-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(ellipse 60% 50% at 15% 20%, rgba(56,48,180,.28) 0%, transparent 65%), radial-gradient(ellipse 50% 45% at 85% 80%, rgba(14,120,140,.2) 0%, transparent 60%), radial-gradient(ellipse 35% 35% at 50% 50%, rgba(80,40,160,.1) 0%, transparent 70%);
}

.vd-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 28px 28px;
}

.vd-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(12,15,32,.78);
    border: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    animation: vdCardIn .5s cubic-bezier(.22,1,.36,1) both;
}

.vd-card-top {
    padding: 38px 36px 0;
    background: linear-gradient(180deg, rgba(56,48,180,.09) 0%, transparent 100%);
}

.vd-card-body {
    padding: 28px 36px 36px;
}

/* Logo */
.vd-logo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.vd-logo-sq {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: #0a0d1f;
    border: 1px solid rgba(100,90,240,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    animation: vdFloat 4s ease-in-out infinite;
}

    .vd-logo-sq::after {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(100,90,240,.18), transparent 60%);
        pointer-events: none;
    }

.vd-brand {
    font-size: 21px;
    font-weight: 600;
    color: #eceeff;
    letter-spacing: -.02em;
    font-family: 'DM Sans', sans-serif;
}

.vd-accent {
    background: linear-gradient(90deg, #8b83ff, #3dd6f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vd-sub {
    font-size: 12px;
    color: rgba(160,165,200,.42);
    margin-top: 4px;
    letter-spacing: .03em;
    font-family: 'DM Sans', sans-serif;
}

/* Separator */
.vd-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.vd-sep-l {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.06);
}

.vd-sep-t {
    font-size: 11px;
    color: rgba(150,155,195,.3);
    letter-spacing: .07em;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}

/* Labels */
.vd-lbl {
    font-size: 11.5px;
    color: rgba(160,168,210,.5);
    letter-spacing: .04em;
    margin-bottom: 6px;
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

/* MudTextField overrides */
.vd-input .mud-input-outlined .mud-input-outlined-border {
    border-radius: 12px !important;
    border-color: rgba(255,255,255,.07) !important;
    background: rgba(255,255,255,.04) !important;
    transition: border-color .2s, background .2s !important;
}

.vd-input .mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: rgba(139,131,255,.5) !important;
    background: rgba(139,131,255,.06) !important;
}

.vd-input input,
.vd-input .mud-input-slot {
    color: #dde0f5 !important;
    font-size: 13.5px !important;
    font-family: 'DM Sans', sans-serif !important;
}

.vd-input .mud-input-adornment svg {
    color: rgba(139,131,255,.5) !important;
    font-size: 18px !important;
}

/* Error */
.vd-err {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220,60,60,.1);
    border: 1px solid rgba(220,60,60,.2);
    border-radius: 10px;
    padding: 9px 13px;
}

.vd-err-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e05555;
    flex-shrink: 0;
}

.vd-err span {
    font-size: 12.5px;
    color: #e09090;
    font-family: 'DM Sans', sans-serif;
}

/* Button */
.vd-btn {
    height: 48px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #5145d6 0%, #1ab8d4 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    font-family: 'DM Sans', sans-serif !important;
    text-transform: none !important;
    letter-spacing: .01em !important;
    border: none !important;
    transition: opacity .18s, transform .14s !important;
}

    .vd-btn:hover:not(:disabled) {
        opacity: .88 !important;
    }

    .vd-btn:active:not(:disabled) {
        transform: scale(.985) !important;
    }

    .vd-btn:disabled {
        opacity: .4 !important;
    }

/* Links */
.vd-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.vd-link {
    font-size: 12.5px !important;
    color: #7b76d4 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    opacity: .75;
    transition: opacity .2s;
    font-family: 'DM Sans', sans-serif;
}

    .vd-link:hover {
        opacity: 1 !important;
    }

/* Animations */
@keyframes vdCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.975);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes vdFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}