/* ===============================
   AmeriB2B Directory Styles
   =============================== */

.amerib2b-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.amerib2b-directory-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.amerib2b-directory-card img {
    border-radius: 50%;
    margin-bottom: 15px;
}

.directory-primary-btn {
    display: inline-block;
    background: #0077b5;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.directory-primary-btn:hover {
    background: #005a8a;
}

.urm-notice {
    max-width: 600px;
    margin: 40px auto;
    background: #fff3cd;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
}

/* ============================================================
   UNIFIED LOGIN (118) & LOST PASSWORD (128) CARD STYLING
   ============================================================ */

/* 1. Center the content wrapper on both pages */
body.page-id-128 .entry-content,
body.page-id-118 .entry-content {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

/* 2. Target the User Registration container */
body.page-id-128 .entry-content #user-registration,
body.page-id-118 .entry-content #user-registration {
    width: 100% !important;
    max-width: 500px !important;
    margin: 40px auto !important;
}

/* 3. Target the form wrapper */
body.page-id-128 #ur-frontend-form,
body.page-id-118 #ur-frontend-form {
    width: 100% !important;
}

/* 4. Style the white card (Both Login and Reset forms) */
body.page-id-128 form.user-registration-ResetPassword,
body.page-id-118 form.user-registration-login {
    width: 100% !important;
    padding: 40px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    border: 1px solid #e1e1e1 !important;
}

/* 5. Center the title/header area */
body.page-id-128 .ur-lost-password-content-container,
body.page-id-118 .user-registration-before-my-account-title {
    text-align: center !important;
    margin-bottom: 30px !important;
    font-size: 1.9em !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* 6. Form Grid and Labels */
body.page-id-118 .ur-form-row, 
body.page-id-118 .ur-form-grid,
body.page-id-118 label {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

/* 7. Unified Input Field Styling */
body.page-id-128 .form-control,
body.page-id-118 .form-control,
body.page-id-118 input[type="text"],
body.page-id-118 input[type="password"] {
    width: 100% !important;
    padding: 14px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
}

/* 8. Unified Blue Button Styling */
body.page-id-128 .ur-reset-password-btn,
body.page-id-118 .ur-submit-button {
    width: 100% !important;
    background: #0077b5 !important;
    color: #fff !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.page-id-118 .ur-submit-button:hover {
    background: #005a8c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,119,181,0.3) !important;
}

/* 9. Center footer links (Remember Me / Lost Password) */
body.page-id-118 .ur-login-remember,
body.page-id-118 .lost_password {
    text-align: center !important;
    display: block !important;
    margin-top: 15px !important;
}

/* 10. Mobile responsive */
@media (max-width: 767px) {
    body.page-id-118 .entry-content #user-registration {
        max-width: 95% !important;
        margin: 20px auto !important;
    }
    body.page-id-118 form.user-registration-login {
        padding: 30px 20px !important;
    }
}