@charset "UTF-8";

/*
|--------------------------------------------------------------------------
| الملف: public_html/assets/css/public/register/provider-register.css
| الوصف:
|   الأنماط الخاصة بصفحة إنشاء حساب مقدم الخدمة.
|--------------------------------------------------------------------------
|
| ملاحظات مهمة:
| - بنية وتمركز وسلوك المودال العام أصبحت مسؤولية:
|   public_html/assets/css/shared/components/modals.css
| - هذا الملف يضيف فقط اللمسات الخاصة بصفحة تسجيل مقدم الخدمة
|   ومحتوى نافذة التحقق نفسها دون إعادة تعريف نظام المودال الموحد.
*/

/* ==========================================================================
   Page
   ========================================================================== */

.provider-register {
    padding: 32px 0 64px;
}

.provider-register__inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

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

.provider-register__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #0f62db;
    background: #edf5ff;
    border: 1px solid #d8e8ff;
    border-radius: 999px;
}

.provider-register__title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.35;
    color: #132238;
    letter-spacing: -.02em;
}

.provider-register__description {
    margin: 0 auto;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.95;
    color: #5b6b7f;
}

.provider-register__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .98) 100%);
    border: 1px solid #d8e2ee;
    border-radius: 24px;
    box-shadow:
        0 14px 34px rgba(17, 36, 58, 0.08),
        0 2px 8px rgba(17, 36, 58, 0.04);
    padding: 28px 24px;
}

.provider-register__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.provider-register__card-copy {
    min-width: 0;
}

.provider-register__card-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.45;
    color: #173556;
}

.provider-register__card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #667588;
}

.provider-register__card-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d8e2ee;
    background: #f8fbff;
    color: #284667;
    white-space: nowrap;
    flex-shrink: 0;
}

.provider-register__card-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d17c00;
    box-shadow: 0 0 0 5px rgba(209, 124, 0, 0.10);
}

.provider-register__card-status.is-verified {
    background: #eefaf3;
    border-color: #cfe8db;
    color: #155c38;
}

.provider-register__card-status.is-verified .provider-register__card-status-dot {
    background: #138a52;
    box-shadow: 0 0 0 5px rgba(19, 138, 82, 0.10);
}

.provider-register__card-status.is-pending {
    background: #fff8ee;
    border-color: #f2deba;
    color: #875300;
}

.provider-register__verification-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: 18px;
    border: 1px solid #f0dbad;
    background: linear-gradient(180deg, #fffaf1 0%, #fff6e9 100%);
}

.provider-register__verification-summary.is-verified {
    border-color: #cce7d7;
    background: linear-gradient(180deg, #f3fbf6 0%, #edf8f1 100%);
}

.provider-register__verification-summary-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    color: #b56a00;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.provider-register__verification-summary.is-verified .provider-register__verification-summary-icon {
    color: #138a52;
}

.provider-register__verification-summary-content {
    min-width: 0;
    flex: 1;
}

.provider-register__verification-summary-title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 800;
    color: #173556;
}

.provider-register__verification-summary-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: #5f6d7e;
}

.provider-register__verification-summary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e3d2ac;
    color: #8a5800;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.provider-register__verification-summary-action:hover {
    text-decoration: none;
    background: #fff8ee;
    border-color: #dabb7b;
    color: #744900;
}

/* ==========================================================================
   Form
   ========================================================================== */

.provider-register-form {
    display: grid;
    gap: 18px;
}

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

.provider-register-field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.provider-register-field__label {
    font-size: 14px;
    font-weight: 800;
    color: #173556;
}

.provider-register-field__input,
.provider-register-field__select {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    border: 1px solid #cfd9e5;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px;
    font-size: 15px;
    color: #132238;
    outline: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.provider-register-field__input:hover,
.provider-register-field__select:hover {
    border-color: #bccddd;
}

.provider-register-field__input:focus,
.provider-register-field__select:focus {
    border-color: #0f62db;
    box-shadow: 0 0 0 4px rgba(15, 98, 219, 0.10);
}

.provider-register-field__input--ltr {
    direction: ltr;
    text-align: left;
}

.provider-register-field__input--readonly {
    background: #f8fbff;
    color: #173556;
    cursor: default;
    opacity: 1;
    font-weight: 600;
}

.provider-register-field__input--readonly:focus {
    border-color: #cfd9e5;
    box-shadow: none;
}

.provider-register-field__hint {
    margin: 0;
    color: #65758a;
    font-size: 12px;
    line-height: 1.75;
}

.provider-register-field__error {
    margin: 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.provider-register-field--invalid .provider-register-field__input,
.provider-register-field--invalid .provider-register-field__select {
    border-color: #c53b32;
    box-shadow: 0 0 0 4px rgba(197, 59, 50, 0.08);
    background: #fffafa;
}

/* ==========================================================================
   Password meter
   ========================================================================== */

.provider-register-password-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.provider-register-password-meter__label,
.provider-register-password-meter__text {
    font-size: 13px;
    font-weight: 700;
    color: #48607a;
}

.provider-register-password-meter__bar {
    width: 112px;
    height: 9px;
    border-radius: 999px;
    background: #e5ebf3;
    display: inline-block;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.provider-register-password-meter__bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    transition: width .20s ease, background-color .20s ease;
}

.provider-register-password-meter__bar--weak::after {
    width: 34%;
    background: #c53b32;
}

.provider-register-password-meter__bar--medium::after {
    width: 68%;
    background: #d17c00;
}

.provider-register-password-meter__bar--strong::after {
    width: 100%;
    background: #138a52;
}

.provider-register-password-meter__bar--neutral::after {
    width: 0;
    background: transparent;
}

/* ==========================================================================
   Actions
   ========================================================================== */

.provider-register-form__actions,
.provider-register-verification-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.provider-register-form__actions {
    margin-top: 8px;
}

.provider-register-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        opacity .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.provider-register-action:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.provider-register-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 98, 219, 0.12);
}

.provider-register-action:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

.provider-register-action--primary {
    background: linear-gradient(180deg, #1670f2 0%, #0f62db 100%);
    border-color: #0f62db;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 98, 219, 0.18);
}

.provider-register-action--primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #1568df 0%, #0d57c4 100%);
    border-color: #0d57c4;
}

.provider-register-action--secondary {
    background: #f4f7fb;
    border-color: #0f62db;
    color: #0f62db;
}

.provider-register-action--secondary:hover:not(:disabled) {
    background: #ecf2f9;
    border-color: #c9d7e6;
}

.provider-register-action--block {
    width: 100%;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.provider-register-alert {
    border-radius: 18px;
    padding: 15px 16px;
    border: 1px solid transparent;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(17, 36, 58, 0.04);
}

.provider-register-alert__title {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 800;
}

.provider-register-alert__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    word-break: break-word;
}

.provider-register-alert--danger {
    background: #fff1ef;
    border-color: #f3c9c4;
    color: #9f2d22;
}

.provider-register-alert--warning {
    background: #fff7ea;
    border-color: #f0dbad;
    color: #9a6700;
}

.provider-register-alert--info {
    background: #edf6ff;
    border-color: #cfe2fb;
    color: #0b63c7;
}

.provider-register-alert--success {
    background: #eefaf3;
    border-color: #cbe9d7;
    color: #156b40;
}

/* ==========================================================================
   Verification dialog
   ========================================================================== */

.provider-register-verification--hidden {
    display: none;
}

/* اللمسات الخاصة بالخلفية فقط، دون إعادة تعريف تمركز المودال الموحد */
.provider-register-verification__backdrop {
    background:
        radial-gradient(circle at top, rgba(38, 98, 189, 0.14), transparent 36%),
        rgba(15, 23, 38, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* تخصيص مظهر نافذة التحقق فوق بنية المودال الموحد */
.provider-register-verification__dialog {
    width: min(100%, 620px);
    border: 1px solid rgba(216, 226, 238, 0.92);
    border-radius: 26px;
    box-shadow:
        0 30px 64px rgba(17, 36, 58, 0.24),
        0 10px 28px rgba(17, 36, 58, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.provider-register-verification__content {
    background: transparent;
}

.provider-register-verification__header {
    margin: 0;
    display: grid;
    gap: 12px;
}

.provider-register-verification__badge-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.provider-register-verification__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #0f62db;
    background: #edf5ff;
    border: 1px solid #d5e6ff;
    border-radius: 999px;
}

.provider-register-verification__step {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #4a6077;
    background: #f4f7fb;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
}

.provider-register-verification__title {
    margin: 0;
    font-size: 26px;
    color: #132238;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.provider-register-verification__description {
    margin: 0;
    color: #5b6b7f;
    font-size: 14px;
    line-height: 1.85;
}

.provider-register-verification__body {
    padding: 0;
}

.provider-register-verification__body-inner {
    padding: 22px;
}

.provider-register-verification__forms {
    display: grid;
    gap: 0;
}

.provider-register-verification-form {
    display: grid;
    gap: 14px;
}

.provider-register-verification-form--separated {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e9f1;
}

.provider-register-verification__lock-note {
    font-size: 12px;
    line-height: 1.8;
    color: #8a5a00;
    background: #fff8ee;
    border: 1px solid #f0debb;
    border-radius: 14px;
    padding: 10px 12px;
}

.provider-register-verification__status-box {
    border: 1px solid #e5b3b3;
    background: #fff3f3;
    border-radius: 14px;
    padding: 10px 12px;
}

.provider-register-verification__resend-hint {
    margin: 0;
    color: #8e2f2f;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 700;
}

.provider-register-verification__resend-meta {
    margin: 4px 0 0;
    color: #9a4a4a;
    font-size: 11px;
    line-height: 1.7;
    font-weight: 700;
}

.provider-register-verification__footer {
    padding: 0;
}

.provider-register-verification__footer-inner {
    padding: 14px 22px 18px;
}

.provider-register-verification__footer-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: #667588;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
    .provider-register {
        padding: 20px 0 48px;
    }

    .provider-register__title {
        font-size: 28px;
    }

    .provider-register__card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .provider-register__card-head,
    .provider-register__verification-summary {
        flex-direction: column;
    }

    .provider-register__card-status,
    .provider-register__verification-summary-action {
        width: 100%;
        justify-content: center;
    }

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

    .provider-register-form__actions,
    .provider-register-verification-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .provider-register-password-meter {
        align-items: flex-start;
        flex-direction: column;
    }

    .provider-register-verification__dialog {
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .provider-register-verification__badge-wrap {
        flex-direction: row;
        align-items: center;
    }

    .provider-register-verification__title {
        font-size: 22px;
    }

    .provider-register-verification__body-inner {
        padding: 18px 14px;
    }

    .provider-register-verification__footer-inner {
        padding: 12px 14px 14px;
    }
}