/* GST-Style Error and Message Styling */

/* Error Message Box - GST Red Theme */
.gst-error-message {
    padding: 12px 16px;
    margin: 10px 0;
    background-color: #fff3cd;
    border-left: 4px solid #dc3545;
    color: #721c24;
    font-size: 14px;
    border-radius: 4px;
    display: none;  /* Hidden by default, shown via jQuery .show() */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.gst-error-message strong {
    font-weight: 600;
    color: #721c24;
}

/* Warning Message Box - GST Orange Theme */
.gst-warning-message {
    padding: 12px 16px;
    margin: 10px 0;
    background-color: #fff3cd;
    border-left: 4px solid #fd7e14;
    color: #856404;
    font-size: 14px;
    border-radius: 4px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.gst-warning-message strong {
    font-weight: 600;
    color: #856404;
}

/* Success Message Box - GST Green Theme */
.gst-success-message {
    padding: 12px 16px;
    margin: 10px 0;
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    font-size: 14px;
    border-radius: 4px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.gst-success-message strong {
    font-weight: 600;
    color: #155724;
}

/* Info Message Box - GST Blue Theme */
.gst-info-message {
    padding: 12px 16px;
    margin: 10px 0;
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
    font-size: 14px;
    border-radius: 4px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.gst-info-message strong {
    font-weight: 600;
    color: #0c5460;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .gst-error-message,
    .gst-warning-message,
    .gst-success-message,
    .gst-info-message {
        padding: 10px 12px;
        font-size: 13px;
        margin: 8px 0;
    }
}

/* Login form specific styling */
.login-error-container {
    margin-bottom: 15px;
    min-height: 20px;
}

.login-error-container .gst-error-message,
.login-error-container .gst-warning-message {
    margin: 0;
}

/* Input field styling for errors */
.form-input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.form-input-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Close button for messages (if needed) */
.message-close-btn {
    float: right;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.message-close-btn:hover {
    opacity: 1;
}
