@charset "UTF-8";
/* ==========================================================================
   signin.css — صفحة تسجيل الدخول
   ==========================================================================

   كل المحدّدات مسبوقة بـ .sg حتى لا تتداخل مع login.css الأصلي الذي
   يبقى محمّلًا في نفس الصفحة.

   تنبيه: لا تُضف font-family إلى محدّد شامل مثل ‎.sg-card *‎ — فهو يطابق
   وسوم <i> ودرجة تخصيصه تساوي درجة قواعد FontAwesome الخالية من
   ‎!important، فيغلبها وتختفي الأيقونات.
   ========================================================================== */

/* --------------------------------------------------------------------------
   إخفاء تخطيط صفحة الدخول الأصلي
   -------------------------------------------------------------------------- */

.login,
.login-group {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: none !important;
}


/* --------------------------------------------------------------------------
   الخلفية والبطاقة
   -------------------------------------------------------------------------- */

body {
    margin: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.sg-card {
    --primary:  #111827;
    --gold:     #c5a880;
    --text:     #1e293b;
    --muted:    #64748b;
    --border:   #e2e8f0;
    --sg-font:  'Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;

    font-family: var(--sg-font);
    background: #fff;
    width: 100%;
    max-width: 980px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
    direction: rtl;
    text-align: right;
    min-height: 580px;
}


/* --------------------------------------------------------------------------
   جانب النموذج
   -------------------------------------------------------------------------- */

.sg-form-side {
    flex: 1 1 55%;
    padding: 42px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sg-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    margin-bottom: 26px;
}

.sg-brand img {
    height: 44px;
    width: auto;
}

.sg-brand span {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

.sg-brand:hover span {
    color: var(--gold);
}

.sg-head {
    margin-bottom: 26px;
}

.sg-head h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 7px;
    line-height: 1.4;
}

.sg-head p {
    font-size: 14.5px;
    color: var(--muted);
    margin: 0;
}


/* --------------------------------------------------------------------------
   الحقول
   -------------------------------------------------------------------------- */

.sg-group {
    margin-bottom: 18px;
}

.sg-group > label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.sg-req {
    color: #dc2626;
}

.sg-input {
    position: relative;
    display: flex;
    align-items: center;
}

.sg-input > i {
    position: absolute;
    right: 15px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.sg-input input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sg-input input::placeholder {
    color: #b0bcc9;
}

.sg-input input:focus {
    outline: none;
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.16);
}

.sg-eye {
    position: absolute;
    left: 10px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.sg-eye:hover {
    color: var(--primary);
}


/* --------------------------------------------------------------------------
   الخيارات
   -------------------------------------------------------------------------- */

.sg-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.sg-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}

.sg-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.sg-forgot {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
}

.sg-forgot:hover {
    color: var(--primary);
    text-decoration: underline;
}

.sg-captcha {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}


/* --------------------------------------------------------------------------
   زر الدخول
   -------------------------------------------------------------------------- */

.sg-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 11px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.sg-submit:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(17, 24, 39, 0.5);
}


/* --------------------------------------------------------------------------
   التنبيهات
   -------------------------------------------------------------------------- */

.sg-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.sg-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sg-alert.is-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* رسائل CI تأتي داخل وسوم <p> — تُزال هوامشها الافتراضية */
.sg-alert p {
    margin: 0;
}


/* --------------------------------------------------------------------------
   أزرار الديمو
   -------------------------------------------------------------------------- */

.sg-demo {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.sg-demo h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 11px;
}

.sg-demo nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sg-demo button {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sg-demo button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* --------------------------------------------------------------------------
   اللوحة الجانبية
   -------------------------------------------------------------------------- */

.sg-visual {
    flex: 1 1 45%;
    position: relative;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 38px 34px;
}

.sg-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.15) 100%);
}

.sg-quote {
    position: relative;
    color: #fff;
}

.sg-quote > i {
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 13px;
    display: block;
}

.sg-quote p {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.95;
    margin: 0 0 11px;
}

.sg-quote span {
    font-size: 13.5px;
    color: var(--gold);
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   الشاشات الصغيرة
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .sg-card {
        flex-direction: column;
        max-width: 480px;
        min-height: 0;
    }

    /* اللوحة الجانبية تصير شريطًا أعلى النموذج */
    .sg-visual {
        order: -1;
        flex: none;
        min-height: 190px;
        padding: 26px 24px;
    }

    .sg-quote p {
        font-size: 1rem;
    }

    .sg-form-side {
        padding: 30px 26px 34px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 0;
    }

    .sg-card {
        border-radius: 0;
        min-height: 100vh;
    }

    .sg-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
