/* #region Error Code Appearance */
.mdHeadingMain .mdErrorCode {
    font-size: 6rem;
    font-weight: 700;
    color: rgba(220, 53, 69, 0.9);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.7);
    animation: errorGlow 2s infinite alternate;
    display: block;
}

@keyframes errorGlow {
    from { text-shadow: 0 0 5px rgba(220, 53, 69, 0.7); }
    to { text-shadow: 0 0 20px rgba(220, 53, 69, 0.9), 0 0 30px rgba(178, 34, 52, 0.8); }
}
/* #endregion Error Code Appearance */

/* #region Error Description */
.mdErrorDescription {
    margin: 2rem 0;
}

.mdErrorDescription p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}
/* #endregion Error Description */

/* #region Primary Action Buttons */
.mdErrorActions .mdButton.mdButtonPrimary {
    background: linear-gradient(
        135deg,
        rgba(220, 53, 69, 0.9),
        rgba(178, 34, 52, 0.9)
    );
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(220, 53, 69, 0.3);
}

.mdErrorActions .mdButton.mdButtonPrimary:hover {
    background: linear-gradient(
        135deg,
        rgba(220, 53, 69, 1),
        rgba(178, 34, 52, 1)
    );
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(220, 53, 69, 0.4);
}

.mdErrorActions .mdButton.mdButtonPrimary:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(220, 53, 69, 0.4);
}
/* #endregion Primary Action Buttons */

/* #region Login Button Overrides */
.mdErrorActions a.mdLoginButton {
    text-decoration: none;
    background: linear-gradient(
        135deg,
        rgba(220, 53, 69, 0.9),
        rgba(178, 34, 52, 0.9)
    ) !important;
    box-shadow: 0 8px 15px rgba(220, 53, 69, 0.3) !important;
    transition: all 0.3s ease;
}

.mdErrorActions a.mdLoginButton:hover {
    background: linear-gradient(
        135deg,
        rgba(220, 53, 69, 1),
        rgba(178, 34, 52, 1)
    ) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(220, 53, 69, 0.4) !important;
}

.mdErrorActions a.mdLoginButton:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(220, 53, 69, 0.4) !important;
}
/* #endregion Login Button Overrides */

/* #region Error Image Placeholder */
.mdErrorImagePlaceholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 16px;
    margin-top: 2rem;
}

.mdErrorImagePlaceholder .mdErrorIcon {
    font-size: 8rem;
    color: rgba(220, 53, 69, 0.7);
}
/* #endregion Error Image Placeholder */

/* #region Highlight Accents */
.mdHeadingHighlight {
    color: rgb(22, 42, 114);
    font-weight: 700;
}
/* #endregion Highlight Accents */

/* #region Icon Animations */
.mdErrorImagePlaceholder .fas.fa-exclamation-triangle {
    animation: shake 1.5s infinite;
}

.mdErrorImagePlaceholder .fas.fa-lock {
    animation: pulse 2s infinite;
}

.mdErrorImagePlaceholder .fas.fa-cogs {
    animation: spin 4s linear infinite;
}
/* #endregion Icon Animations */

/* #region Motion Keyframes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* #endregion Motion Keyframes */

/* #region Responsive Adjustments */
@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .mdLoginCard {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .error-code {
        font-size: 3.5rem;
    }
    
    .error-title {
        font-size: 1.3rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-message {
        font-size: 0.9rem;
    }
}
/* #endregion Responsive Adjustments */
