/* ==========================================================================
   AFAQ CONSULTANT LOGIN — FINAL PROFESSIONAL RESPONSIVE CSS
   Path: assets/css/auth/consultant-login.css
   Scope: .afaq-consultant-login
   ========================================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html body .afaq-consultant-login,
html body .afaq-consultant-login *,
html body .afaq-consultant-login *::before,
html body .afaq-consultant-login *::after {
    box-sizing: border-box !important;
}

html body .afaq-consultant-login {
    --acl-navy: #071f3f;
    --acl-navy-soft: #173453;
    --acl-gold: #c2a061;
    --acl-gold-dark: #a97b35;
    --acl-text: #24364f;
    --acl-muted: #6b7788;
    --acl-line: rgba(7, 31, 63, .10);
    --acl-danger: #b83f3f;
    --acl-danger-bg: #fff7f7;
    --acl-danger-line: rgba(184, 63, 63, .20);
    --acl-surface: #ffffff;
    --acl-bg: #f7f8fb;
    --acl-shadow: 0 24px 70px rgba(7, 31, 63, .11);
    --acl-shadow-soft: 0 10px 28px rgba(7, 31, 63, .06);
    --acl-font: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Arial, sans-serif;

    position: relative !important;
    min-height: calc(100svh - 32px) !important;
    width: 100% !important;
    padding: 42px 18px !important;
    display: grid !important;
    place-items: center !important;
    direction: rtl !important;
    overflow: hidden !important;
    isolation: isolate !important;
    color: var(--acl-text) !important;
    -webkit-text-fill-color: var(--acl-text) !important;
    font-family: var(--acl-font) !important;
    background:
        radial-gradient(circle at 8% 8%, rgba(194, 160, 97, .13), transparent 320px),
        radial-gradient(circle at 92% 12%, rgba(7, 31, 63, .08), transparent 340px),
        linear-gradient(180deg, #ffffff 0%, var(--acl-bg) 100%) !important;
}

html body .afaq-consultant-login::before,
html body .afaq-consultant-login::after {
    content: "" !important;
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

html body .afaq-consultant-login::before {
    width: 260px !important;
    height: 260px !important;
    inset-inline-start: -110px !important;
    bottom: -120px !important;
    background: rgba(194, 160, 97, .08) !important;
    filter: blur(2px) !important;
}

html body .afaq-consultant-login::after {
    width: 220px !important;
    height: 220px !important;
    inset-inline-end: -90px !important;
    top: -90px !important;
    background: rgba(7, 31, 63, .05) !important;
}

html body .afaq-consultant-login :where(
    a, button, input, label, p, span, strong, small, h1, h2, h3, div
) {
    font-family: var(--acl-font) !important;
    text-shadow: none !important;
}

/* Card */
html body .afaq-consultant-login__card {
    position: relative !important;
    z-index: 1 !important;
    width: min(100%, 560px) !important;
    margin: 0 !important;
    padding: 34px !important;
    border: 1px solid rgba(194, 160, 97, .24) !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    color: var(--acl-text) !important;
    -webkit-text-fill-color: var(--acl-text) !important;
    background:
        radial-gradient(circle at 0 0, rgba(194, 160, 97, .11), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(253, 250, 245, .97)) !important;
    box-shadow: var(--acl-shadow) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

html body .afaq-consultant-login__card::before {
    content: "" !important;
    position: absolute !important;
    inset-inline-start: 0 !important;
    top: 24px !important;
    bottom: 24px !important;
    width: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--acl-gold), rgba(194, 160, 97, .08)) !important;
}

/* Brand */
html body .afaq-consultant-login__brand {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 18px !important;
    margin: 0 0 26px !important;
    padding: 0 0 24px !important;
    border-bottom: 1px solid var(--acl-line) !important;
}

html body .afaq-consultant-login__brand > .dashicons {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    border: 1px solid rgba(7, 31, 63, .16) !important;
    border-radius: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .24), transparent 35%),
        linear-gradient(135deg, var(--acl-navy-soft), var(--acl-navy)) !important;
    box-shadow: 0 14px 28px rgba(7, 31, 63, .18) !important;
    font-size: 28px !important;
    line-height: 1 !important;
}

html body .afaq-consultant-login__brand > div {
    min-width: 0 !important;
}

html body .afaq-consultant-login__brand small {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 25px !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(194, 160, 97, .24) !important;
    border-radius: 999px !important;
    color: var(--acl-gold-dark) !important;
    -webkit-text-fill-color: var(--acl-gold-dark) !important;
    background: rgba(194, 160, 97, .09) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
}

html body .afaq-consultant-login__brand h1 {
    margin: 9px 0 7px !important;
    color: var(--acl-navy) !important;
    -webkit-text-fill-color: var(--acl-navy) !important;
    font-size: clamp(27px, 3vw, 34px) !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

html body .afaq-consultant-login__brand p {
    margin: 0 !important;
    color: var(--acl-muted) !important;
    -webkit-text-fill-color: var(--acl-muted) !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    font-weight: 600 !important;
}

/* Notice */
html body .afaq-consultant-login__notice {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 0 18px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--acl-danger-line) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    color: var(--acl-danger) !important;
    -webkit-text-fill-color: var(--acl-danger) !important;
    background: linear-gradient(135deg, rgba(184, 63, 63, .08), var(--acl-danger-bg)) !important;
    box-shadow: 0 8px 20px rgba(184, 63, 63, .06) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Form */
html body .afaq-consultant-login form {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    gap: 10px !important;
}

html body .afaq-consultant-login form > label:not(.afaq-consultant-login__remember) {
    margin: 5px 0 0 !important;
    color: #46566d !important;
    -webkit-text-fill-color: #46566d !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 850 !important;
}

html body .afaq-consultant-login input[type="tel"],
html body .afaq-consultant-login input[type="password"],
html body .afaq-consultant-login input[type="text"] {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid rgba(7, 31, 63, .12) !important;
    border-radius: 14px !important;
    outline: 0 !important;
    color: var(--acl-navy) !important;
    -webkit-text-fill-color: var(--acl-navy) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .94),
        0 5px 16px rgba(7, 31, 63, .03) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

html body .afaq-consultant-login input::placeholder {
    color: #9aa3af !important;
    -webkit-text-fill-color: #9aa3af !important;
    opacity: 1 !important;
}

html body .afaq-consultant-login input:hover {
    border-color: rgba(7, 31, 63, .20) !important;
}

html body .afaq-consultant-login input:focus {
    border-color: var(--acl-navy-soft) !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 4px rgba(23, 52, 83, .10),
        0 10px 24px rgba(7, 31, 63, .06) !important;
}

/* Password */
html body .afaq-consultant-login__password {
    position: relative !important;
    width: 100% !important;
}

html body .afaq-consultant-login__password input {
    padding-left: 56px !important;
}

html body .afaq-consultant-login__password button {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(7, 31, 63, .08) !important;
    border-radius: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--acl-navy-soft) !important;
    -webkit-text-fill-color: var(--acl-navy-soft) !important;
    background: rgba(7, 31, 63, .045) !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease !important;
}

html body .afaq-consultant-login__password button:hover {
    background: rgba(7, 31, 63, .08) !important;
}

html body .afaq-consultant-login__password button:focus-visible {
    outline: 2px solid var(--acl-gold) !important;
    outline-offset: 2px !important;
}

html body .afaq-consultant-login__password button .dashicons {
    width: 19px !important;
    height: 19px !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

/* Remember */
html body .afaq-consultant-login__remember {
    width: fit-content !important;
    min-height: 30px !important;
    margin: 3px 0 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--acl-muted) !important;
    -webkit-text-fill-color: var(--acl-muted) !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 650 !important;
    cursor: pointer !important;
}

html body .afaq-consultant-login__remember input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    accent-color: var(--acl-navy) !important;
    cursor: pointer !important;
}

html body .afaq-consultant-login__remember span {
    color: var(--acl-muted) !important;
    -webkit-text-fill-color: var(--acl-muted) !important;
}

/* Submit */
html body .afaq-consultant-login__submit {
    width: 100% !important;
    min-height: 54px !important;
    margin: 7px 0 0 !important;
    padding: 12px 18px !important;
    border: 1px solid rgba(7, 31, 63, .20) !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .22), transparent 34%),
        linear-gradient(135deg, var(--acl-navy-soft), var(--acl-navy)) !important;
    box-shadow: 0 15px 30px rgba(7, 31, 63, .18) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

html body .afaq-consultant-login__submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 34px rgba(7, 31, 63, .22) !important;
    filter: brightness(1.03) !important;
}

html body .afaq-consultant-login__submit:active {
    transform: translateY(0) !important;
}

html body .afaq-consultant-login__submit:focus-visible {
    outline: 3px solid rgba(194, 160, 97, .45) !important;
    outline-offset: 3px !important;
}

/* Security */
html body .afaq-consultant-login__security {
    position: relative !important;
    z-index: 1 !important;
    min-height: 48px !important;
    margin: 22px 0 0 !important;
    padding: 17px 0 0 !important;
    border-top: 1px solid var(--acl-line) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    color: var(--acl-muted) !important;
    -webkit-text-fill-color: var(--acl-muted) !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    font-weight: 650 !important;
}

html body .afaq-consultant-login__security .dashicons {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid rgba(194, 160, 97, .18) !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--acl-gold-dark) !important;
    -webkit-text-fill-color: var(--acl-gold-dark) !important;
    background: rgba(194, 160, 97, .08) !important;
    font-size: 15px !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
    html body .afaq-consultant-login {
        min-height: 100svh !important;
        padding: 24px 14px !important;
    }

    html body .afaq-consultant-login__card {
        width: min(100%, 520px) !important;
        padding: 26px 22px !important;
        border-radius: 22px !important;
    }

    html body .afaq-consultant-login__brand {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        gap: 14px !important;
        margin-bottom: 22px !important;
        padding-bottom: 20px !important;
    }

    html body .afaq-consultant-login__brand > .dashicons {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        border-radius: 16px !important;
        font-size: 25px !important;
    }

    html body .afaq-consultant-login__brand h1 {
        font-size: 27px !important;
    }
}

@media screen and (max-width: 520px) {
    html body .afaq-consultant-login {
        padding: 16px 10px !important;
        place-items: start center !important;
    }

    html body .afaq-consultant-login__card {
        margin-top: 8px !important;
        padding: 22px 16px !important;
        border-radius: 18px !important;
    }

    html body .afaq-consultant-login__card::before {
        top: 18px !important;
        bottom: 18px !important;
        width: 3px !important;
    }

    html body .afaq-consultant-login__brand {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 11px !important;
        margin-bottom: 18px !important;
        padding-bottom: 17px !important;
    }

    html body .afaq-consultant-login__brand > .dashicons {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 14px !important;
        font-size: 22px !important;
    }

    html body .afaq-consultant-login__brand small {
        min-height: 22px !important;
        padding: 4px 8px !important;
        font-size: 8px !important;
    }

    html body .afaq-consultant-login__brand h1 {
        margin-top: 7px !important;
        font-size: 23px !important;
    }

    html body .afaq-consultant-login__brand p {
        font-size: 11px !important;
        line-height: 1.65 !important;
    }

    html body .afaq-consultant-login input[type="tel"],
    html body .afaq-consultant-login input[type="password"],
    html body .afaq-consultant-login input[type="text"] {
        height: 50px !important;
        min-height: 50px !important;
        font-size: 14px !important;
    }

    html body .afaq-consultant-login__submit {
        min-height: 50px !important;
        font-size: 14px !important;
    }

    html body .afaq-consultant-login__security {
        align-items: flex-start !important;
        font-size: 9px !important;
    }
}

@media screen and (max-width: 360px) {
    html body .afaq-consultant-login__brand {
        grid-template-columns: 1fr !important;
    }

    html body .afaq-consultant-login__brand > .dashicons {
        margin-inline: auto !important;
    }

    html body .afaq-consultant-login__brand > div {
        text-align: center !important;
    }

    html body .afaq-consultant-login__brand small {
        margin-inline: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .afaq-consultant-login *,
    html body .afaq-consultant-login *::before,
    html body .afaq-consultant-login *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
