/* Enterprise Neumorphic Theme */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #e0e5ec;
    color: #2d3748;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, .btn-link:hover {
    color: #2d3748;
    text-decoration: none;
}

.btn-primary {
    color: #2d3748;
    background: #e0e5ec;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 
        9px 9px 16px #a3b1c6,
        -9px -9px 16px #ffffff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 
        inset 9px 9px 16px #a3b1c6,
        inset -9px -9px 16px #ffffff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 
        inset 6px 6px 12px #a3b1c6,
        inset -6px -6px 12px #ffffff;
    outline: none;
}

.content {
    padding: 2rem;
    background: #e0e5ec;
    border-radius: 24px;
    margin: 1rem;
    box-shadow: 
        20px 20px 40px #a3b1c6,
        -20px -20px 40px #ffffff;
}

.valid.modified:not([type=checkbox]) {
    outline: 2px solid #10b981;
    border-radius: 8px;
}

.invalid {
    outline: 2px solid #ef4444;
    border-radius: 8px;
}

.validation-message {
    color: #ef4444;
    font-weight: 500;
}

#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3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Y1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Enterprise Neumorphic Loading Screen */
.neuro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #e0e5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.glass-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(163, 177, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backdropShift 30s ease-in-out infinite;
}

@keyframes backdropShift {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    25% { transform: translateX(-20px) translateY(-10px) scale(1.02); }
    50% { transform: translateX(10px) translateY(20px) scale(0.98); }
    75% { transform: translateX(20px) translateY(-15px) scale(1.01); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #a3b1c6;
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.6;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 70%; animation-delay: 1s; animation-duration: 19s; }
.particle:nth-child(5) { left: 80%; animation-delay: 3s; animation-duration: 21s; }
.particle:nth-child(6) { left: 90%; animation-delay: 5s; animation-duration: 17s; }

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px) scale(1); opacity: 0; }
}

.neuro-card {
    position: relative;
    width: 420px;
    height: 580px;
    background: #e0e5ec;
    border-radius: 32px;
    box-shadow: 
        20px 20px 60px #a3b1c6,
        -20px -20px 60px #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 48px 32px;
    animation: cardFloat 8s ease-in-out infinite;
    overflow: hidden;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-8px) rotateX(1deg); }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(163, 177, 198, 0.02), transparent, rgba(255, 255, 255, 0.02), transparent);
    animation: rotate 40s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.brand-section {
    text-align: center;
    z-index: 2;
}

.orbit-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.orbit-outer-ring, .orbit-middle-ring, .orbit-inner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: spin 20s linear infinite;
}

.orbit-outer-ring {
    width: 120px;
    height: 120px;
    border-color: #a3b1c6;
    animation-duration: 25s;
    border-width: 1px;
}

.orbit-middle-ring {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-color: #718096;
    animation-duration: 18s;
    animation-direction: reverse;
    border-width: 1px;
}

.orbit-inner-ring {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
    border-color: #4a5568;
    animation-duration: 12s;
    border-width: 1px;
}

.orbit-core {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50px;
    left: 50px;
    background: #e0e5ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 4px 4px 8px #a3b1c6,
        inset -4px -4px 8px #ffffff;
}

.core-pulse {
    width: 8px;
    height: 8px;
    background: #2d3748;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #2d3748;
    margin: 0 0 8px 0;
    letter-spacing: 0.1em;
    text-shadow: 
        2px 2px 4px #a3b1c6,
        -2px -2px 4px #ffffff;
}

.brand-subtitle {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.progress-section {
    z-index: 2;
}

.neuro-progress-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-track {
    fill: none;
    stroke: #a3b1c6;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-bar {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: calc(440 - (440 * var(--blazor-load-percentage, 0)) / 100);
    transition: stroke-dashoffset 0.3s ease;
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    text-shadow: 
        1px 1px 2px #a3b1c6,
        -1px -1px 2px #ffffff;
}

.progress-label {
    font-size: 0.8rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.status-section {
    text-align: center;
    z-index: 2;
}

.status-text {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.status-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #e0e5ec;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 
        inset 2px 2px 4px #a3b1c6,
        inset -2px -2px 4px #ffffff;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
    40% { transform: scale(1.3); opacity: 1; }
}

.ambient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(163, 177, 198, 0.03) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    bottom: 20%;
    right: -5%;
    animation-delay: 8s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(163, 177, 198, 0.02) 0%, transparent 70%);
    top: 60%;
    left: 80%;
    animation-delay: 15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .neuro-card {
        width: 90vw;
        height: 70vh;
        padding: 32px 24px;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .neuro-progress-ring {
        width: 120px;
        height: 120px;
    }
}

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;
}