/* ServiceFinder provider registration page */
.provider-auth-section,
.provider-auth-section * { box-sizing: border-box; }

.provider-auth-section {
    display: block;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 100px);
    padding: 130px 20px 70px;
    background: #f4f7fc;
    clear: both;
    overflow: visible;
    z-index: 1;
}

.provider-auth-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(24, 48, 85, .12);
    color: #26354d;
}

.provider-auth-card h1,
.provider-auth-card h2 {
    margin: 0 0 12px;
    color: #263b66;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
}

.provider-auth-card .auth-intro {
    margin: 0 0 28px;
    color: #738097;
    text-align: center;
}

.provider-auth-card .form-group { margin-bottom: 18px; }

.provider-auth-card label {
    display: block;
    margin: 0 0 7px;
    color: #34415a;
    font-size: 14px;
    font-weight: 600;
}

.provider-auth-card input:not([type="checkbox"]),
.provider-auth-card select,
.provider-auth-card textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d7dfeb;
    border-radius: 7px;
    background: #fff;
    color: #27364e;
    font: inherit;
    outline: none;
}

.provider-auth-card input:focus,
.provider-auth-card select:focus,
.provider-auth-card textarea:focus {
    border-color: #4261a0;
    box-shadow: 0 0 0 3px rgba(66, 97, 160, .12);
}

.provider-auth-card .auth-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.provider-auth-card button[type="submit"] {
    min-height: 46px;
    padding: 12px 30px;
    border: 0;
    border-radius: 7px;
    background: #ff5a1f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.provider-auth-card button[type="submit"]:hover { background: #e94a12; }

.provider-auth-card .auth-links {
    margin-top: 24px;
    color: #6f7c91;
    text-align: center;
}

.provider-auth-card a { color: #315797; font-weight: 600; }
.provider-auth-card .alert { margin-bottom: 20px; }

@media (max-width: 767px) {
    .provider-auth-section { padding: 30px 14px 45px; }
    .provider-auth-card { padding: 25px 18px; }
    .provider-auth-card h1,
    .provider-auth-card h2 { font-size: 23px; }
}




/* =========================================
   Provider Login Page
========================================= */

.provider-login-section,
.provider-login-section * {
    box-sizing: border-box;
}

.provider-login-section {
    display: block;
    position: relative;
    width: 100%;
    min-height: 650px;
    padding: 130px 20px 80px;
    background: #f4f7fc;
    clear: both;
    overflow: visible;
    z-index: 1;
}

.provider-login-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(24, 48, 85, 0.12);
    color: #26354d;
}

.provider-login-card h1 {
    margin: 0 0 12px;
    color: #263b66;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
}

.provider-login-card .login-intro {
    margin: 0 0 28px;
    color: #738097;
    text-align: center;
}

.provider-login-card .form-group {
    margin-bottom: 22px;
}

.provider-login-card label {
    display: block;
    margin-bottom: 8px;
    color: #34415a;
    font-size: 14px;
    font-weight: 600;
}

.provider-login-card input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7dfeb;
    border-radius: 7px;
    background: #fff;
    color: #27364e;
    font: inherit;
    outline: none;
}

.provider-login-card input:focus {
    border-color: #4261a0;
    box-shadow: 0 0 0 3px rgba(66, 97, 160, 0.12);
}

.provider-login-card button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 7px;
    background: #ff5a1f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.provider-login-card button[type="submit"]:hover {
    background: #e94a12;
}

.provider-login-card .login-links {
    margin-top: 24px;
    color: #738097;
    text-align: center;
}

.provider-login-card .login-links a {
    color: #315797;
    font-weight: 600;
    text-decoration: none;
}

.provider-login-card .login-links a:hover {
    color: #ff5a1f;
}

.provider-login-card .alert {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .provider-login-section {
        min-height: 550px;
        padding: 35px 14px 50px;
    }

    .provider-login-card {
        padding: 28px 20px;
    }

    .provider-login-card h1 {
        font-size: 24px;
    }
}


/* =========================================================
   Provider Dashboard + Profile pages
   Scoped classes only: avoids changing the main site theme.
   ========================================================= */

.provider-dashboard-page,
.provider-profile-page,
.provider-dashboard-page *,
.provider-profile-page * {
    box-sizing: border-box;
}

section.provider-dashboard-page,
section.provider-profile-page {
    float: none !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 560px !important;
    margin: 0 !important;
    padding: 130px 20px 70px !important;
    clear: both !important;
    overflow: visible !important;
    background: #f4f7fc !important;
    color: #26354d !important;
    z-index: 1 !important;
}

.provider-page-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.provider-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.provider-page-heading h1,
.provider-profile-heading h1 {
    margin: 0 0 8px !important;
    color: #263b66 !important;
    font-size: 30px !important;
    line-height: 1.3 !important;
}

.provider-page-heading p,
.provider-profile-heading p {
    margin: 0 !important;
    color: #738097 !important;
    font-size: 15px !important;
}

.provider-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.provider-stat-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e5ebf4;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(24, 48, 85, .06);
}

.provider-stat-card span {
    display: block;
    margin-bottom: 8px;
    color: #738097;
    font-size: 14px;
}

.provider-stat-card strong {
    display: block;
    color: #ff5a1f;
    font-size: 30px;
    line-height: 1.2;
}

.provider-dashboard-actions {
    margin-bottom: 24px;
}

.provider-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.provider-btn-primary {
    background: #ff5a1f !important;
    color: #fff !important;
}

.provider-btn-primary:hover {
    background: #e94a12 !important;
    color: #fff !important;
}

.provider-btn-outline {
    background: #fff !important;
    color: #344d80 !important;
    border-color: #d7dfeb !important;
}

.provider-btn-light {
    background: #f4f7fc !important;
    color: #344d80 !important;
    border-color: #d7dfeb !important;
}

.provider-listings-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5ebf4;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(24, 48, 85, .06);
}

.provider-listings-card h2 {
    margin: 0 !important;
    padding: 22px 24px !important;
    border-bottom: 1px solid #edf0f6;
    color: #263b66 !important;
    font-size: 21px !important;
}

.provider-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.provider-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

.provider-table th,
.provider-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #edf0f6;
    color: #43516a;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.provider-table th {
    background: #f8faff;
    color: #34415a;
    font-weight: 700;
}

.provider-table tbody tr:last-child td {
    border-bottom: 0;
}

.provider-empty {
    padding: 30px !important;
    text-align: center !important;
    color: #738097 !important;
}

.provider-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef2f8;
    color: #53627a;
    font-size: 12px;
    font-weight: 700;
}

.provider-status-published {
    background: #e6f7ed;
    color: #197545;
}

.provider-status-pending {
    background: #fff3d9;
    color: #8b6200;
}

.provider-status-rejected,
.provider-status-inactive {
    background: #fde9e7;
    color: #a52b25;
}

/* Profile */
.provider-profile-card {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 36px;
    background: #fff;
    border: 1px solid #e5ebf4;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(24, 48, 85, .10);
}

.provider-profile-heading {
    margin-bottom: 28px;
    text-align: center;
}

.provider-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.provider-field {
    min-width: 0;
}

.provider-field-full {
    grid-column: 1 / -1;
}

.provider-profile-card .provider-field label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #34415a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.provider-profile-card .provider-field input {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    padding: 12px 14px !important;
    border: 1px solid #d7dfeb !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #27364e !important;
    font: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

.provider-profile-card .provider-field input:focus {
    border-color: #4261a0 !important;
    box-shadow: 0 0 0 3px rgba(66, 97, 160, .12) !important;
}

.provider-profile-card .provider-field input[readonly] {
    background: #f5f7fb !important;
    color: #738097 !important;
}

.provider-field small {
    display: block;
    margin-top: 6px;
    color: #738097;
    font-size: 12px;
}

.provider-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.provider-alert {
    margin-bottom: 22px;
    padding: 13px 16px;
    border-radius: 7px;
    font-size: 14px;
}

.provider-alert-success {
    background: #e6f7ed;
    color: #197545;
}

.provider-alert-danger {
    background: #fde9e7;
    color: #a52b25;
}

@media (max-width: 700px) {
    section.provider-dashboard-page,
    section.provider-profile-page {
        padding: 30px 14px 45px !important;
    }

    .provider-page-heading {
        align-items: flex-start;
    }

    .provider-page-heading h1,
    .provider-profile-heading h1 {
        font-size: 25px !important;
    }

    .provider-stats-grid {
        grid-template-columns: 1fr;
    }

    .provider-profile-card {
        padding: 24px 18px;
    }

    .provider-profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .provider-field-full {
        grid-column: auto;
    }
}
