﻿.auto-notification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 0px;
    padding-right: 0px;
    line-height: 16px;
    color: #fff;
    opacity: 0.95;
}

    .auto-notification.success {
        background-color: #4bb07a;
    }

    .auto-notification.error {
        background-color: #e4444c;
    }

    .auto-notification.warning {
        background-color: #f39c12;
    }

    .auto-notification .content {
        padding-left: 10px;
        margin: 0 10px 0 0;
    }

        .auto-notification .content a {
            color: #fff;
            text-decoration: underline;
        }

    .auto-notification .close {
        position: absolute;
        top: 0;
        right: 0;
        width: 32px;
        height: 32px;
        margin: 7px 7px;
        background: #fff url('images/close.png') center no-repeat;
        cursor: pointer;
    }

.UploadFileErrorCss {
    color: red;
}
.RequiredFieldTextCss {
    color: red;
}

.loading {
    display: none;
    position: fixed;
    top: 350px;
    left: 50%;
    margin-top: -96px;
    margin-left: -96px;
    background-color: #ccc;
    opacity: .85;
    border-radius: 25px;
    width: 192px;
    height: 192px;
    z-index: 99999;
}

/* Modern alert styles */
.modern-error-alert,
.validation-summary-errors.modern-error-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 1px solid #ff6b6b;
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
    animation: slideDownFadeIn 0.3s ease-out;
}

/* Hide validation summary when empty (no errors) */
.modern-error-alert:empty,
.validation-summary-errors.modern-error-alert:empty {
    display: none;
}

.modern-error-alert ul,
.validation-summary-errors.modern-error-alert ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* Hide validation summary when ul is empty */
.modern-error-alert ul:empty,
.validation-summary-errors.modern-error-alert ul:empty {
    display: none;
}

.modern-error-alert li,
.validation-summary-errors.modern-error-alert li {
    color: #c92a2a;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    display: inline;
}

    
.modern-error-alert li::before,
.validation-summary-errors.modern-error-alert li::before {
    content: none !important;
}

/* Modern login card styling */
#pnlLoginOutter {
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
padding: 1.5rem 2rem !important;
max-width: 520px;
transition: box-shadow 0.3s ease;
}

#pnlLoginOutter:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
#pnlLoginOutter {
    max-width: 100%;
    padding: 1.25rem 1.5rem !important;
    border-radius: 8px;
}
}

/* Password error field styling - High specificity to override Bootstrap */
#Password.password-error-field,
#ConfirmPassword.password-error-field,
input.form-control.password-error-field[type="password"],
input.password-error-field.form-control {
    border: 2px solid #ff6b6b !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25) !important;
}

#Password.password-error-field:focus,
#ConfirmPassword.password-error-field:focus,
input.form-control.password-error-field[type="password"]:focus,
input.password-error-field.form-control:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25) !important;
    outline: none !important;
}

.modern-success-alert {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border: 1px solid #51cf66;
    border-left: 4px solid #51cf66;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.15);
    animation: slideDownFadeIn 0.3s ease-out;
    color: #2b8a3e;
    font-weight: 500;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}