@charset "UTF-8";

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

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

.page-register,
.page-register-choice {
    overflow-x: clip;
}

/* ==========================================================================
   Register Choice Section
   ========================================================================== */

.register-choice {
    position: relative;
    padding-block: clamp(32px, 6vw, 76px);
}

.register-choice::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: min(320px, 44vw);
    background:
        radial-gradient(circle at top right, rgba(15, 98, 219, 0.10), transparent 48%),
        radial-gradient(circle at top left, rgba(15, 98, 219, 0.06), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.register-choice .container,
.register-choice__inner {
    position: relative;
    z-index: 1;
}

.register-choice__inner {
    width: min(100%, 1120px);
    margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.register-choice__header {
    width: min(100%, 760px);
    margin-inline: auto;
    margin-bottom: clamp(22px, 4vw, 34px);
    text-align: center;
}

.register-choice__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0 0 14px;
    padding: 6px 14px;
    border: 1px solid rgba(15, 98, 219, 0.14);
    border-radius: 999px;
    background: rgba(15, 98, 219, 0.08);
    color: var(--brand, #0f62db);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.register-choice__title {
    margin: 0;
    color: var(--text, #11243a);
    font-size: clamp(1.95rem, 1.25rem + 1.9vw, 3rem);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.01em;
}

.register-choice__description {
    width: min(100%, 700px);
    margin: 14px auto 0;
    color: var(--muted, #5c6b7c);
    font-size: clamp(1rem, 0.95rem + 0.22vw, 1.08rem);
    line-height: 1.95;
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */

.register-choice__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
}

/* ==========================================================================
   Card
   ========================================================================== */

.register-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(22px, 2.5vw, 30px);
    border: 1px solid var(--line, #d8e2ee);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow:
        0 18px 40px rgba(15, 35, 58, 0.08),
        0 2px 8px rgba(15, 35, 58, 0.04);
    overflow: hidden;
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 260ms ease,
        background-color 260ms ease;
}

.register-choice-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 98, 219, 0.88) 0%, rgba(15, 98, 219, 0.40) 100%);
    opacity: 0.92;
}

.register-choice-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -48px;
    top: -48px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 98, 219, 0.10) 0%, rgba(15, 98, 219, 0.02) 58%, transparent 74%);
    pointer-events: none;
}

.register-choice-card:hover,
.register-choice-card:focus-within {
    transform: translateY(-6px);
    border-color: var(--line-strong, #bfd0e2);
    box-shadow:
        0 24px 52px rgba(15, 35, 58, 0.11),
        0 8px 20px rgba(15, 35, 58, 0.06);
}

.register-choice-card__body {
    position: relative;
    z-index: 1;
}

.register-choice-card__badge {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 98, 219, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 98, 219, 0.14) 0%, rgba(15, 98, 219, 0.07) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    display: flex;           /* جديد */
    align-items: center;     /* توسيط عمودي */
    justify-content: center; /* توسيط أفقي */
}

.register-choice-card__title {
    margin: 0;
    color: var(--text, #11243a);
    font-size: clamp(1.2rem, 1.06rem + 0.5vw, 1.52rem);
    font-weight: 800;
    line-height: 1.4;
}

.register-choice-card__description {
    margin: 12px 0 0;
    color: var(--muted, #5c6b7c);
    font-size: 0.99rem;
    line-height: 1.95;
}

.register-choice-card__footer {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

/* ==========================================================================
   Badge Icon
   ========================================================================== */

.register-choice-card__badge .register-choice-card__icon {
    display: block;
    width: 36px;          /* تكبير الأيقونة */
    height: 36px;
    object-fit: contain;  /* الحفاظ على نسبة العرض/الارتفاع */
}

/* ==========================================================================
   Variants
   ========================================================================== */

.register-choice-card--provider .register-choice-card__badge {
    background:
        linear-gradient(180deg, rgba(15, 98, 219, 0.15) 0%, rgba(11, 99, 199, 0.08) 100%);
}

.register-choice-card--customer .register-choice-card__badge {
    background:
        linear-gradient(180deg, rgba(15, 138, 75, 0.14) 0%, rgba(15, 138, 75, 0.07) 100%);
    border-color: rgba(15, 138, 75, 0.14);
}

.register-choice-card--customer::before {
    background: linear-gradient(90deg, rgba(15, 138, 75, 0.85) 0%, rgba(15, 138, 75, 0.34) 100%);
}

.register-choice-card--customer::after {
    background: radial-gradient(circle, rgba(15, 138, 75, 0.10) 0%, rgba(15, 138, 75, 0.02) 58%, transparent 74%);
}

/* ==========================================================================
   Action Button
   ========================================================================== */

.register-choice-card__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--brand, #0f62db);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 98, 219, 0.20);
    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 220ms ease,
        background-color 220ms ease;
}

.register-choice-card__action:hover,
.register-choice-card__action:focus-visible {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 98, 219, 0.24);
    filter: saturate(1.03);
}

.register-choice-card__action:focus-visible {
    outline: 0;
}

.register-choice-card__action-label {
    display: inline-block;
}

.register-choice-card__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1rem;
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.register-choice-card__action:hover .register-choice-card__action-icon,
.register-choice-card__action:focus-visible .register-choice-card__action-icon {
    transform: translateX(-3px);
}

.register-choice-card--customer .register-choice-card__action {
    background: var(--success, #0f8a4b);
    box-shadow: 0 12px 24px rgba(15, 138, 75, 0.18);
}

.register-choice-card--customer .register-choice-card__action:hover,
.register-choice-card--customer .register-choice-card__action:focus-visible {
    box-shadow: 0 16px 28px rgba(15, 138, 75, 0.22);
}

/* ==========================================================================
   Reveal Animation
   ========================================================================== */

.reveal-on-load {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-load.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.register-choice__header.reveal-on-load {
    transition-duration: 760ms;
}

.register-choice-card.reveal-on-load {
    transition-duration: 820ms;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .register-choice,
    .register-choice::before,
    .register-choice-card,
    .register-choice-card__action,
    .register-choice-card__action-icon,
    .reveal-on-load {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-load {
        opacity: 1 !important;
    }
}

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

@media (max-width: 991.98px) {
    .register-choice {
        padding-block: 28px 54px;
    }

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

    .register-choice__header {
        margin-bottom: 24px;
    }

    .register-choice-card {
        border-radius: 22px;
    }
}

@media (max-width: 767.98px) {
    .register-choice__eyebrow {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .register-choice__description {
        font-size: 0.97rem;
        line-height: 1.9;
    }

    .register-choice-card {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .register-choice-card__badge {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .register-choice-card__badge .register-choice-card__icon {
        width: 28px;    /* تصغير قليلاً للأجهزة الصغيرة */
        height: 28px;
    }

    .register-choice-card__footer {
        margin-top: 22px;
    }

    .register-choice-card__action {
        min-height: 50px;
        border-radius: 13px;
        font-size: 0.95rem;
    }
}

@media (max-width: 479.98px) {
    .register-choice {
        padding-block: 24px 44px;
    }

    .register-choice__header {
        text-align: start;
    }

    .register-choice__description {
        margin-inline: 0;
    }

    .register-choice-card__title {
        font-size: 1.12rem;
    }

    .register-choice-card__description {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .register-choice-card__badge .register-choice-card__icon {
        width: 24px;    /* أصغر قليلًا للشاشات الصغيرة جدًا */
        height: 24px;
    }
}