/* Future login — match نظام فيوتشر من انظمة وتطبيقات المستقبل.png */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --fl-bg: #E8F9EF;
    --fl-green: #2bb673;
    --fl-green-dark: #239a61;
    --fl-text: #1e2430;
    --fl-muted: #8b949e;
    --fl-border: #e1e5ec;
    --fl-white: #ffffff;
    --fl-max: 1680px;
}

* { box-sizing: border-box; }

html, body.future-login-body {
    margin: 0;
    min-height: 100%;
    background: var(--fl-bg);
    font-family: "Cairo", sans-serif;
    color: var(--fl-text);
}

.fl-page {
    min-height: 100vh;
    background: var(--fl-bg);
    padding: 10px 12px 0;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ——— Header ——— */
.fl-header {
    width: min(var(--fl-max), calc(100% - 8px));
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    padding: 4px 4px 6px;
    flex-shrink: 0;
}

.fl-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.fl-brand-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.fl-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.fl-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.fl-nav a:hover { color: var(--fl-green); }

.fl-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fl-lang {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    color: #374151;
}

.fl-header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: 1.5px solid var(--fl-green);
    border-radius: 10px;
    color: var(--fl-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
}

.fl-header-login:hover {
    background: var(--fl-green);
    color: #fff;
}

/* ——— Card ——— */
.fl-page-title {
    width: 70%;
    max-width: var(--fl-max);
    margin: 6px auto 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fl-page-title-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(43, 182, 115, 0.12);
    color: var(--fl-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fl-page-title h2 {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--fl-text);
}

.fl-page-title-line {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--fl-green), transparent);
    margin-top: 2px;
}

.fl-card {
    width: 70%;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    background: var(--fl-white);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(20, 80, 50, 0.08);
    display: grid;
    grid-template-columns: 1.45fr 1.1fr;
    align-items: stretch;
    margin: auto;
}

.fl-card--register {
    width: 90%;
}

.fl-form-col {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 24px 40px;
    overflow: auto;
}

.fl-form-inner {
    width: 100%;
    max-width: 650px;
}

.fl-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.fl-title h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--fl-green);
    line-height: 1;
}

.fl-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--fl-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0;
    box-shadow: 0 8px 18px rgba(43, 182, 115, 0.28);
    flex-shrink: 0;
}

.fl-title-icon svg {
    width: 18px;
    height: 18px;
}

.fl-field { margin-bottom: 14px; }

.fl-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--fl-muted);
    font-size: 13px;
    font-weight: 600;
}

.fl-field input[type="email"],
.fl-field input[type="password"],
.fl-field input[type="text"] {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: #eef2f6;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--fl-text);
    outline: none;
}

.fl-field input:focus {
    background: #e8edf3;
    box-shadow: 0 0 0 2px rgba(43, 182, 115, 0.25);
}

.fl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 16px;
}

.fl-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fl-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.fl-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--fl-green);
}

.fl-forgot {
    color: var(--fl-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.fl-forgot:hover { color: var(--fl-green); }

.fl-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--fl-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.fl-submit:hover { background: var(--fl-green-dark); }
.fl-submit:disabled { opacity: .75; }

.fl-form-inner--register .fl-field { margin-bottom: 12px; }
.fl-form-inner--register .fl-field input[type="email"],
.fl-form-inner--register .fl-field input[type="password"],
.fl-form-inner--register .fl-field input[type="text"] {
    height: 42px;
}

.fl-terms {
    margin: 4px 0 16px;
}

.fl-terms .fl-remember {
    align-items: flex-start;
    line-height: 1.5;
}

.fl-terms a {
    color: var(--fl-green);
    font-weight: 700;
    text-decoration: none;
}

.fl-terms a:hover { text-decoration: underline; }

.fl-auth-switch {
    margin: 14px 0 0;
    text-align: center;
    color: var(--fl-muted);
    font-size: 13px;
}

.fl-auth-switch a {
    color: var(--fl-green);
    font-weight: 700;
    text-decoration: none;
}

.fl-auth-switch a:hover { text-decoration: underline; }

.fl-services {
    margin-top: 18px;
    text-align: center;
}

.fl-services-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    text-align: right;
}

.fl-service-pill {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--pill) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--pill) 28%, #fff);
    box-shadow: 0 4px 14px rgba(30, 36, 48, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fl-service-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 36, 48, 0.08);
}

.fl-service-pill.is-wide {
    grid-column: 1 / -1;
}

.fl-service-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--pill);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pill) 22%, transparent);
    flex-shrink: 0;
}

.fl-service-pill p {
    margin: 0;
    color: #243044;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.7;
}

.fl-services-tagline {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 16px auto 0;
}

@supports not (background: color-mix(in srgb, red 50%, white)) {
    .fl-service-pill {
        background: #f7f9fc;
        border-color: #e6ebf2;
    }

    .fl-service-dot {
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
    }
}

.fl-visual-col {
    position: relative;
    min-height: 0;
    background: #fff;
    overflow: hidden;
}

.fl-visual-col img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}

/* ——— Footer ——— */
.fl-footer {
    width: min(var(--fl-max), calc(100% - 8px));
    align-self: stretch;
    margin-top: 28px;
    padding: 8px 8px 24px;
    flex-shrink: 0;
}

.fl-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1.3fr;
    gap: 28px 24px;
    align-items: start;
}

.fl-footer-col h3,
.fl-footer-col h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.fl-footer-about p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #4b5563;
}

.fl-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fl-footer-col ul li { margin-bottom: 10px; }

.fl-footer-col ul a {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.fl-footer-col ul a:hover { color: var(--fl-green); }

.fl-social {
    display: flex;
    gap: 10px;
}

.fl-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-social a svg { width: 14px; height: 14px; }

.fl-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.fl-contact-list a {
    color: #4b5563;
    text-decoration: none;
}

.fl-contact-icon {
    width: 22px;
    height: 22px;
    color: var(--fl-green);
    flex-shrink: 0;
    margin-top: 1px;
}

.fl-contact-icon svg { width: 20px; height: 20px; }

.fl-newsletter-title {
    margin: 18px 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.fl-newsletter-msg {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
}

.fl-newsletter-msg.is-success { color: var(--fl-green); }
.fl-newsletter-msg.is-error { color: #dc3545; }

.fl-newsletter {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--fl-green);
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0 8px 0 10px;
    gap: 8px;
}

.fl-newsletter input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: var(--fl-green);
    text-align: right;
}

.fl-newsletter input::placeholder { color: var(--fl-green); opacity: .85; }

.fl-newsletter button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--fl-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fl-newsletter button svg { width: 18px; height: 18px; }

.fl-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.fl-footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 10px;
}

.fl-footer-links a {
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

.fl-footer-bottom p {
    margin: 4px 0;
    font-size: 12px;
    color: #4b5563;
}

.fl-footer-credit {
    margin-top: 8px !important;
    font-weight: 700;
    color: #111 !important;
}

.fl-error {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .fl-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fl-nav { gap: 16px; }
    .fl-nav a { font-size: 13px; }
}

@media (max-width: 991.98px) {
    .fl-page { padding: 12px 12px 24px; }
    .fl-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .fl-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 4px;
    }
    .fl-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 24px;
    }
    .fl-visual-col {
        position: relative;
        min-height: 280px;
        height: 280px;
        order: -1;
    }
    .fl-form-col { padding: 24px 18px; }
    .fl-title h1 { font-size: 24px; }
    .fl-services-grid { grid-template-columns: 1fr; }
    .fl-service-pill.is-wide { grid-column: auto; }
    .fl-service-pill p { font-size: 13px; }
    .fl-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
