/* ============================================================
   Out Line — صفحة الدخول بهوية الطباعة (CSP-safe: external file)
   عناصر التصميم: علامات قص (crop marks) + شريط ألوان CMYK
   ============================================================ */

:root {
    --ol-navy: #0a0f1e;
    --ol-indigo: #141a3a;
    --ol-blue: #2563eb;
    --ol-cyan: #22d3ee;
    --ol-magenta: #ec4899;
    --ol-yellow: #facc15;
    --ol-white: #f8fafc;
}

body.ps-outline-auth {
    background: radial-gradient(1200px 800px at 85% -10%, #1e2a5e 0%, transparent 55%),
                radial-gradient(900px 700px at -10% 110%, #10233f 0%, transparent 50%),
                linear-gradient(135deg, var(--ol-navy) 0%, var(--ol-indigo) 100%);
    color: var(--ol-white);
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* ─── شبكة الطباعة الخافتة على الخلفية ─── */
body.ps-outline-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

/* ─── التخطيط المقسوم ─── */
.ol-auth-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.ol-brand-side {
    flex: 1.15 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.ol-form-side {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 40px;
}

@media (max-width: 991.98px) {
    .ol-brand-side { display: none; }
    .ol-form-side { background: linear-gradient(135deg, var(--ol-navy) 0%, var(--ol-indigo) 100%); }
}

/* ─── شعار Out Line ─── */
.ol-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ol-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--ol-blue), var(--ol-cyan));
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
    letter-spacing: -1px;
}

.ol-logo-word { line-height: 1.05; }
.ol-logo-word .ol-word-en {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    text-transform: uppercase;
}
.ol-logo-word .ol-word-ar {
    font-size: 12.5px;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* ─── لقطة الطباعة: علامات قص ─── */
.ol-crop {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 34px 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
}

.ol-crop .ol-crop-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, 0.45);
    border-style: solid;
    border-width: 0;
}
.ol-crop .ol-c-tl { top: -2px; right: -2px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 10px; }
.ol-crop .ol-c-tr { top: -2px; left: -2px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 10px; }
.ol-crop .ol-c-bl { bottom: -2px; right: -2px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 10px; }
.ol-crop .ol-c-br { bottom: -2px; left: -2px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 10px; }

/* ─── شريط ألوان CMYK (زي حواف الليفة المطبوعة) ─── */
.ol-colorbar {
    display: flex;
    height: 10px;
    width: 180px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.ol-colorbar span { flex: 1; }
.ol-colorbar .c { background: var(--ol-cyan); }
.ol-colorbar .m { background: var(--ol-magenta); }
.ol-colorbar .y { background: var(--ol-yellow); }
.ol-colorbar .k { background: #0b1220; }

/* ─── العناوين والمزايا ─── */
.ol-hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.35;
    margin: 18px 0 12px;
}

.ol-hero-title .hl {
    background: linear-gradient(90deg, var(--ol-cyan), var(--ol-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ol-hero-sub { color: #94a3b8; font-size: 15px; line-height: 1.9; }

.ol-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 10px;
    font-size: 14.5px;
}

.ol-feature i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.25);
    color: var(--ol-cyan);
    font-size: 16px;
    flex-shrink: 0;
}

.ol-footer { color: #64748b; font-size: 12.5px; letter-spacing: 0.4px; }

/* ─── كارت النموذج ─── */
.ol-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.965);
    border-radius: 22px;
    padding: 40px 36px;
    color: #0f172a;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.ol-card .ol-mini-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ol-card .ol-mini-logo .ol-logo-mark { width: 44px; height: 44px; font-size: 18px; }
.ol-card .ol-mini-logo .ol-word-en { font-size: 19px; letter-spacing: 4px; color: var(--ol-indigo); font-weight: 900; }

.ol-card h5 { font-weight: 800; font-size: 19px; margin: 14px 0 4px; text-align: center; }
.ol-card .ol-sub { text-align: center; color: #64748b; font-size: 13.5px; margin-bottom: 22px; }

.ol-card .form-label { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 5px; }
.ol-card .form-control {
    border-radius: 12px;
    border: 1.5px solid #dbe2ee;
    padding: 11px 14px;
    font-size: 15px;
    background: #f8fafc;
}
.ol-card .form-control:focus {
    border-color: var(--ol-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.ol-card .btn-ol {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 800;
    font-size: 15.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--ol-blue), #1e40af);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ol-card .btn-ol:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.ol-colorbar-sm {
    display: flex;
    height: 6px;
    width: 120px;
    border-radius: 4px;
    overflow: hidden;
    margin: 18px auto 0;
}
.ol-colorbar-sm span { flex: 1; }
.ol-colorbar-sm .c { background: var(--ol-cyan); }
.ol-colorbar-sm .m { background: var(--ol-magenta); }
.ol-colorbar-sm .y { background: var(--ol-yellow); }
.ol-colorbar-sm .k { background: #0b1220; }

/* تنبيهات داخل الكارت */
.ol-card .alert { border-radius: 12px; font-size: 13.5px; }
