/* SMWPS Login Plugin Styles */
/* Basic layout for forms */
.smwps-form {
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Force the width for inputs and buttons to always be 100% of the container */
.smwps-form input:not([type="checkbox"]),
.smwps-form button {
    width: 100% !important;
    box-sizing: border-box;
}

/* Set fallback height only if theme doesn't provide one */
.smwps-form input:not([type="checkbox"]):not([style]) {
    height: 45px; /* Fallback height */
}

/* Form row margin for spacing */
.smwps-form .form-row {
    margin-bottom: 15px;
}

/* Style for the checkbox container */
.smwps-form .form-row.checkbox-field input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
}

/* Style for the checkbox label */
.smwps-form .form-row.checkbox-field label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* Ensure the text doesn't wrap under the checkbox */
.smwps-form .form-row.checkbox-field label span {
    flex: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .smwps-form {
        max-width: 320px !important;
    }
    .smwps-form table,
    .smwps-form table tr,
    .smwps-form table td {
        display: block;
        width: 100% !important;
    }
    .smwps-form table tr {
        margin-bottom: 15px;
    }
}

/* Message container */
.smwps-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Basic message styling */
.smwps-message {
    max-width: 500px !important;
    width: 100% !important;
    margin: 20px auto !important;
    padding: 15px !important;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
}

.smwps-message.error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.smwps-message.success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

/* Regular button styling with padding */
.smwps-form button {
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px 15px; 
}

/* Responsive design for messages */
@media (max-width: 768px) {
    .smwps-message {
        max-width: 320px !important;
    }
}