/* ===============================
   OUTER SECTION (FULL BACKGROUND)
================================ */
.provider-auth-outer {
    /*background: #e9f1e6;
    padding: 80px 20px;*/
}

/* MAIN CONTAINER */
.provider-auth-wrapper {
    display: flex;
    max-width: 1200px;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #dde7d8;
}

/* ===============================
   LEFT SIDE (LOGIN)
================================ */
.provider-left {
    width: 50%;
    background: #cddbc8;
    padding: 60px;
    position: relative;
}

/* LEAF DECORATION */
.provider-left::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 180px;
    height: 220px;
    background: url('https://png.pngtree.com/png-vector/20240309/ourmid/pngtree-green-leaf-decoration-png-image_11939598.png') no-repeat;
    background-size: contain;
    opacity: 0.9;
}

/* ===============================
   RIGHT SIDE (REGISTER)
================================ */
.provider-right {
    width: 50%;
    background: #e3eadf;
    padding: 60px;
}

/* ===============================
   INNER CONTENT BOX
================================ */
.provider-login-box,
.provider-register-box {
    max-width: 420px;
}

/* ===============================
   HEADINGS
================================ */
.provider-login-box h2,
.provider-register-box h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #6c6c6c;
    margin-bottom: 30px;
}

/* ===============================
   INPUT FIELDS (IMPORTANT FIX)
================================ */
.provider-auth-wrapper input[type="text"],
.provider-auth-wrapper input[type="email"],
.provider-auth-wrapper input[type="password"] {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #f3f3f3;
    margin-bottom: 18px;
    font-size: 14px;
}

/* ===============================
   LABELS
================================ */
.provider-auth-wrapper label {
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* ===============================
   LOGIN OPTIONS
================================ */
.login-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 25px;
}

.login-options input {
    margin-right: 5px;
}

/* ===============================
   GREEN BUTTON (MATCH DESIGN)
================================ */
.btn-primary {
    width: 70%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: #52863c !important;
    cursor: pointer;
    display: block;
    margin-top: 10px;
}

.btn-primary:hover {
    background: green !important;
}

/* ===============================
   PASSWORD NOTE
================================ */
.password-note {
    font-size: 12px;
    color: #777;
    margin-bottom: 20px;
    display: block;
}

/* ===============================
   LINKS
================================ */
a {
    color: #4e7d3a;
    text-decoration: none;
    font-size: 13px;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   RESEND LINK
================================ */
.resend-link {
    margin-top: 15px;
}

/* ===============================
   MESSAGES
================================ */
#login-message div,
#register-message div {
    margin-bottom: 15px;
    font-weight: 500;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
    .provider-auth-wrapper {
        flex-direction: column;
    }

    .provider-left,
    .provider-right {
        width: 100%;
        padding: 30px;
    }

    .btn-primary {
        width: 100%;
    }
}

.provider-manage-box {
    background: #eef3ea;
    padding: 30px;
    border-radius: 16px;
}

.provider-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.provider-card input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.connected-provider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 10px;
}

.disconnect-provider {
    color: #4e7d3c;
    font-weight: 500;
}

/* ===== PROVIDER DASHBOARD ===== */

.provider-dashboard-card {
    padding: 1rem;
    border-radius: 16px;
    position: relative;
}

/* Heading */
.provider-dashboard-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* underline */
.title-underline {
    width: 40px;
    height: 4px;
    background: #d9e300;
    margin-bottom: 15px;
}

/* subtitle */
.provider-dashboard-card .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* table wrapper */
.provider-table-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid #B3B3B3;
}

/* table */
.provider-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* HEADER FIX */
.provider-table thead {
    display: table-header-group;
}

.provider-table thead tr {
    background: #F2F2F2;
    display: table-row;
}

/* BODY */
.provider-table tbody tr {
    border-top: 1px solid #eee;
}

.provider-table td {
    padding: 14px 10px;
    font-size: 17px;
    color: #333;
}

/* ROW SPACING */
.provider-table tbody tr:first-child {
    border-top: none;
}

/* button */
.login-author-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #6aa84f;
    color: #6aa84f;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.login-author-btn:hover {
    background: #6aa84f;
    color: #fff;
}

/* ===== PROVIDER CODES ===== */

.provider-codes-box {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #B3B3B3;
}

.codes-header {
    /*font-size: 14px;*/
    margin-bottom: 10px;
    /*color: #555;*/
}

.codes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-code {
    background: #eef5ea;
    border: 1px dashed #6aa84f;
    color: #4e7d3c;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}


/* ===== FORCE TABLE FIX (CRITICAL) ===== */

.provider-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.provider-table thead {
    display: table-header-group !important;
}

.provider-table tbody {
    display: table-row-group !important;
}

.provider-table tr {
    display: table-row !important;
}

.provider-table th,
.provider-table td {
    display: table-cell !important;
    padding: 14px 10px !important;
    text-align: left !important;
}

/* Header styling */
.provider-table thead th {
    font-size: 18px;
    color: #777;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Row border */
.provider-table tbody tr {
    border-top: 1px solid #eee;
}


/* ===== AUTHOR SCREEN FIX ===== */

.provider-inner-card {
    background: #fff;
    border-radius: 14px;
    /*padding: 25px;*/
}

/* Title inside card */
.provider-inner-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* Subtitle inside card */
.provider-inner-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Input fix */
.provider-inner-card input {
    width: 100%;
    padding: 14px !important;
    border-radius: 10px;
    border: none;
    background: #f3f3f3 !important;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Button alignment fix */
.connect-btn {
    width: 200px;
    border-radius: 30px;
    background: #52863c !important;
}

/* Connected row spacing */
.connected-provider-row {
    margin-top: 15px;
}

/* Preeti */
.last_contact_details_sec.et_section_regular .et_pb_with_border .row.contact_box_main {
    display: block;
    padding: 0 !important;
}

.last_contact_details_sec.et_section_regular .et_pb_with_border .row.contact_box_main .col-md-10.content_col {
    padding: 0;
}

.last_contact_details_sec .contact_box_main .img_col {
    margin-bottom: 1rem;
}

.last_contact_details_sec.et_section_regular .et_pb_module.et_pb_text.et_pb_text_7.et_pb_text_align_left.et_pb_bg_layout_light {
    width: 100% !important;
}

.last_contact_details_sec.et_section_regular .et_pb_with_border .row.contact_box_main .col-md-10.content_col h3.detail-value {
    font-weight: 400;
    line-height: 1.7rem;
}

.last_contact_details_sec.et_section_regular .et_pb_with_border .row.contact_box_main .col-md-10.content_col h4.detail-label {
    font-weight: 600;
}

.provider-auth-wrapper {
    max-width: 100%;
    border-radius: 0;
}

.about_second_section.et_section_regular, .about_second_section.et_section_regular div#biblio-provider-box2 {
    width: 100% !important;
    max-width: 100% !important;
}

.provider-login-box h2, .provider-register-box h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 0;
}

p.subtitle {
    margin-bottom: 1rem;
}

.provider-auth-wrapper label {
    font-size: 1rem;
    color: #252525;
}

.provider-auth-wrapper input[type="text"], .provider-auth-wrapper input[type="email"], .provider-auth-wrapper input[type="password"] {
    width: 100%;
    padding: .5rem 1rem;
    border-radius: .7rem;
    border: none;
    background: #FFFFFF;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid #C0CDBD;
}

.provider-login-box, .provider-register-box {
    max-width: 100%;
}

.provider-auth-wrapper, .provider-left, .provider-right {
    background-color: transparent;
}

.provider-left {
    padding: 3rem 5rem 3rem 10rem;
}

.provider-right {
    padding: 3rem 10rem 3rem 5rem;
}

.password-note {
    font-size: 1rem;
    color: #5D5D5D;
    max-width: 80%;
}

a#forgot-password-link, a#resend-verification {
    color: #52863B;
    text-decoration: underline;
    font-size: 1rem;
}

.provider-login-box-loggedin {
    color: #222 !important;
}

.provider-dashboard-card {
    padding: 0 !important;
}

.about-me-para ul {
    margin-bottom: 1rem !important;
    gap: .7rem !important;
}

.about-me-para ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.about-me-para ul li {
    position: relative !important;
    padding-left: 2rem;
}

.about-me-para ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .4rem;
    width: 1.1rem;
    height: 1.1rem;
    background: url('https://biblioauthor.com/wp-content/themes/Divi-Child-Theme-v22/images/mdi_check-1.png') no-repeat center;
    background-size: contain;
}

.provider-table-wrapper {
    padding: 1rem 0;
}

.et_pb_divider_books {
    width: 11%;
    height: .4rem;
}

.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    border-radius: 1.3rem;
}

.provider-login-box div a, .provider-register-box div a {
    color: #54853C;
    font-weight: 700;
}

@media screen and (max-width: 1499.98px) {
    .provider-table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .provider-table {
        width: 100%;
        min-width: 1200px;
        border-collapse: collapse;
    }
}

@media screen and (max-width: 1199.98px) {
    .provider-left {
        padding: 3rem 5rem 3rem 4rem;
    }

    .provider-right {
        padding: 3rem 4rem 3rem 5rem;
    }

    .password-note {
        max-width: 100%;
    }
}

@media screen and (max-width: 767.98px) {
    .provider-left {
        padding: 3rem 5rem 0rem 4rem;
    }

    provider-auth-wrapper, .provider-left, .provider-right {
        background-color: #E9FBE8;
    }

    .provider-right {
        padding: 3rem 5rem 3rem 4rem;
    }
}

@media screen and (max-width: 575.98px) {
    .provider-left {
        padding: 3rem 2rem 0rem 2rem;
    }

    .provider-right {
        padding: 3rem 2rem 3rem 2rem;
    }
}
.connected-provider-row {
    margin-top: 15px;
}
.connected-provider-row small {
    font-size: 1rem;
    color: #4B4B4B;
    font-weight: 400;
}
.connected-provider-row strong {
    color: #303030;
    font-weight: 500;
}
a.disconnect-provider {
    text-decoration: underline;
    font-weight: 500;
    letter-spacing: 0;
}
.provider-inner-card h4, .provider-inner-card p {
    padding: 0 1rem;
}
.connected-provider-row {
    margin: 1rem 1rem 0 1rem;
}
.provider-inner-card input#provider-code {
    margin: 0rem 1rem !important;
    width: 96%;
}
.provider-inner-card button#connect-provider-btn {
    margin: 1rem 1rem 0 1rem;
}

@media screen and (max-width: 575.98px){
    .connected-provider-row {
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        text-align: left;
        margin: 0;
        align-items: flex-start;
    }}
@media screen and (max-width: 479.98px){
    .provider-inner-card input#provider-code {
        margin: 0rem 1rem !important;
        width: 85%;
    }
}
.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 35%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.toggle-password:hover {
    color: #000;
}
/*
#provider-password {
    appearance: none;
    -webkit-appearance: none;
}

#provider-password::-ms-reveal,
#provider-password::-ms-clear {
    display: none;
}

#provider-password::-webkit-credentials-auto-fill-button,
#provider-password::-webkit-clear-button,
#provider-password::-webkit-textfield-decoration-container {
    display: none !important;
}*/
a#forgot-password-link, a#resend-verification {
    color: #52863B;
    text-decoration: underline;
    font-size: 1rem;
    font-weight: 600;
}
#login-message div, #register-message div {
    margin-bottom: 15px;
    font-weight: 500;
    padding: .5rem 1rem ! IMPORTANT;
    border-radius: .6rem ! IMPORTANT;
    font-size: 1rem;
}
body.role-provider .provider-btn {
    display: none !important;
}
/* MODAL BACKDROP */
.provider-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* MODAL BOX */
.provider-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 500px;
    max-width: 90%;
    border-radius: 10px;
    position: relative;
    /*text-align: center;*/
}

/* CLOSE BUTTON */
.provider-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* Spinner inside button */
.btn-loading .btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

#connect-message, #disconnect-message {
    margin: .5rem 0 0 1rem;
}
@media screen and (max-width: 1199.98px) {
    .provider-right {
        padding: 3rem 4rem 3rem 4rem;
    }
}
@media screen and (max-width: 575.98px) {
    .provider-right {
        padding: 3rem 2rem 3rem 2rem;
    }
}