/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Error styles */
.dsfpfw-error {
    color: #b22222;
    margin: 10px 0;
    padding: 12px 15px;
    border: 1px solid #f1acac;
    border-left: 4px solid #b22222;
    background-color: #fff8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 100;
    animation: dsfpfw-fade-in 0.3s ease-out;
}

.dsfpfw-error-field {
    border-color: #b22222 !important;
    background-color: #fff8f8 !important;
}

/* Add error styling compatible with WooCommerce */
.woocommerce-form .dsfpfw-error.woocommerce-error {
    margin-bottom: 15px;
    list-style: none;
    position: relative;
}

/* WordPress login form specific styling */
#registerform .dsfpfw-error,
#signup-form .dsfpfw-error,
form[name="registerform"] .dsfpfw-error {
    margin-top: 15px !important;
    display: block;
    clear: both;
    width: 100%;
}

/* Make the error display more visible */
.dsfpfw-error-field:focus {
    box-shadow: 0 0 0 1px #b22222 !important;
    outline-color: #b22222 !important;
}

/* Handle specific theme compatibility */
.wp-signup-container .dsfpfw-error {
    margin-bottom: 20px;
}

/* Registration validation styles */
.dsfpfw-error-message {
    color: #b81c23;
    display: block;
    margin-top: 5px;
    font-size: 0.857em;
    animation: dsfpfw-fade-in 0.3s ease-out;
}

.dsfpfw-field-error {
    border-color: #b81c23 !important;
}

/* Animation for error messages */
@keyframes dsfpfw-fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}