/* Ajlal Marketplace Auth & Dokan Onboarding */
:root {
    --ajlal-auth-primary: #075e54;
    --ajlal-auth-primary-dark: #043f39;
    --ajlal-auth-accent: #e9fff5;
    --ajlal-auth-red: #c51f1a;
    --ajlal-auth-ink: #102a27;
    --ajlal-auth-muted: #687a77;
    --ajlal-auth-line: #dce8e5;
    --ajlal-auth-surface: #ffffff;
    --ajlal-auth-bg: #f4faf7;
}

.ajlal-auth-page,
.ajlal-dokan-page {
    min-height: 72vh;
    margin-top: var(--header-h, 52px);
    padding: clamp(28px, 6vw, 72px) 16px 110px;
    color: var(--ajlal-auth-ink);
    background:
        radial-gradient(circle at 9% 15%, rgba(16, 185, 129, .12), transparent 27%),
        radial-gradient(circle at 94% 85%, rgba(7, 94, 84, .1), transparent 26%),
        var(--ajlal-auth-bg);
}

.ajlal-auth-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(7, 94, 84, .12);
    border-radius: 28px;
    background: var(--ajlal-auth-surface);
    box-shadow: 0 24px 70px rgba(5, 58, 52, .13);
}

.ajlal-auth-intro {
    position: relative;
    padding: clamp(34px, 6vw, 72px) clamp(28px, 5vw, 60px);
    color: #fff;
    background:
        linear-gradient(150deg, rgba(2, 48, 43, .98), rgba(7, 94, 84, .93)),
        var(--ajlal-auth-primary);
    isolation: isolate;
}

.ajlal-auth-intro::before,
.ajlal-auth-intro::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.ajlal-auth-intro::before { width: 260px; height: 260px; top: -90px; right: -90px; }
.ajlal-auth-intro::after { width: 180px; height: 180px; bottom: -55px; left: -55px; }

.ajlal-auth-kicker {
    display: inline-flex;
    padding: 7px 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #c9ffea;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ajlal-auth-intro h1 {
    max-width: 560px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.ajlal-auth-intro > p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.75;
}

.ajlal-auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 46px;
}

.ajlal-auth-benefits > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}

.ajlal-auth-benefits strong { color: #7ff1bd; font-size: .82rem; }
.ajlal-auth-benefits span { color: rgba(255, 255, 255, .92); font-size: .88rem; font-weight: 650; }

.ajlal-auth-card {
    min-width: 0;
    padding: clamp(26px, 5vw, 54px);
    background: #fff;
}

.ajlal-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    margin-bottom: 32px;
    border-radius: 14px;
    background: #eff5f3;
}

.ajlal-auth-tab {
    appearance: none;
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: var(--ajlal-auth-muted);
    background: transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.ajlal-auth-tab.is-active {
    color: var(--ajlal-auth-primary);
    background: #fff;
    box-shadow: 0 5px 18px rgba(5, 68, 60, .1);
}

.ajlal-auth-panel { display: none; }
.ajlal-auth-panel.is-active { display: block; animation: ajlalAuthReveal .25s ease; }

@keyframes ajlalAuthReveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.ajlal-auth-heading { margin-bottom: 24px; }
.ajlal-auth-heading h2,
.ajlal-auth-signed-in h2 {
    margin: 0 0 7px;
    color: var(--ajlal-auth-ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -.025em;
}
.ajlal-auth-heading p,
.ajlal-auth-signed-in p { margin: 0; color: var(--ajlal-auth-muted); line-height: 1.6; }

.ajlal-auth-alert,
.ajlal-auth-inline-warning {
    padding: 12px 14px;
    margin: -12px 0 22px;
    border-radius: 12px;
    font-size: .84rem;
    line-height: 1.5;
}

.ajlal-auth-alert.is-error,
.ajlal-auth-inline-warning {
    border: 1px solid #ffd2cf;
    color: #92241f;
    background: #fff3f2;
}

.ajlal-auth-form { display: grid; gap: 18px; }
.ajlal-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ajlal-auth-field-wide { grid-column: 1 / -1; }

.ajlal-auth-field { display: grid; gap: 8px; min-width: 0; }
.ajlal-auth-field > span:first-child,
.ajlal-role-choice legend {
    color: #23423e;
    font-size: .79rem;
    font-weight: 800;
}

.ajlal-auth-field input,
.ajlal-dokan-field input,
.ajlal-dokan-field textarea,
.ajlal-dokan-field select {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--ajlal-auth-line);
    border-radius: 12px;
    outline: 0;
    color: var(--ajlal-auth-ink);
    background: #fbfdfc;
    font: inherit;
    font-size: .9rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ajlal-auth-field input:focus,
.ajlal-dokan-field input:focus,
.ajlal-dokan-field textarea:focus,
.ajlal-dokan-field select:focus {
    border-color: var(--ajlal-auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 94, 84, .09);
}

.ajlal-password-wrap { position: relative; display: block; }
.ajlal-password-wrap input { padding-inline-end: 48px; }
.ajlal-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    color: var(--ajlal-auth-muted);
    background: transparent;
    cursor: pointer;
}

.ajlal-auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ajlal-auth-muted);
    font-size: .78rem;
}

.ajlal-auth-form-row a { color: var(--ajlal-auth-primary); font-weight: 750; }
.ajlal-check-label { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.ajlal-check-label input { margin-top: 2px; accent-color: var(--ajlal-auth-primary); }
.ajlal-terms-check { color: var(--ajlal-auth-muted); font-size: .76rem; line-height: 1.5; }

.ajlal-auth-submit,
.ajlal-primary-action,
.ajlal-secondary-action,
.ajlal-dokan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--ajlal-auth-primary), var(--ajlal-auth-primary-dark));
    box-shadow: 0 10px 24px rgba(7, 94, 84, .2);
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ajlal-auth-submit:hover,
.ajlal-primary-action:hover,
.ajlal-dokan-action:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 13px 28px rgba(7, 94, 84, .26); }

.ajlal-secondary-action {
    color: var(--ajlal-auth-primary);
    background: #edf8f3;
    box-shadow: none;
}
.ajlal-secondary-action:hover { color: var(--ajlal-auth-primary-dark); }

.ajlal-role-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
}
.ajlal-role-choice legend { grid-column: 1 / -1; margin-bottom: 2px; }

.ajlal-role-card {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 9px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid var(--ajlal-auth-line);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
}
.ajlal-role-card.is-selected { border-color: var(--ajlal-auth-primary); background: #f1fbf6; box-shadow: 0 0 0 3px rgba(7, 94, 84, .07); }
.ajlal-role-card:has(input:disabled) { opacity: .48; cursor: not-allowed; }
.ajlal-role-card input { position: absolute; opacity: 0; pointer-events: none; }
.ajlal-role-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf7f1; }
.ajlal-role-card strong { display: block; color: var(--ajlal-auth-ink); font-size: .84rem; }
.ajlal-role-card small { display: block; margin-top: 2px; color: var(--ajlal-auth-muted); font-size: .67rem; line-height: 1.35; }

.ajlal-social-login-block { margin-bottom: 22px; }
.ajlal-social-provider-output { display: grid; gap: 10px; }
.ajlal-social-provider-output .nsl-container,
.ajlal-social-provider-output .nsl-container-buttons { width: 100% !important; max-width: none !important; }
.ajlal-social-provider-output .nsl-button { min-height: 47px !important; border-radius: 12px !important; }
.ajlal-social-provider-output > * { margin: 0 !important; }
.ajlal-social-note { margin: 10px 0 0; color: var(--ajlal-auth-muted); font-size: .73rem; line-height: 1.45; }

.ajlal-auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #8aa09c; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.ajlal-auth-divider::before,
.ajlal-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ajlal-auth-line); }

.ajlal-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.ajlal-auth-signed-in { display: grid; gap: 14px; text-align: center; }
.ajlal-auth-avatar { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 50%; color: #fff; background: var(--ajlal-auth-primary); font-size: 1.7rem; font-weight: 900; }

/* Dokan onboarding */
.ajlal-dokan-shell { width: min(1060px, 100%); margin: 0 auto; }
.ajlal-dokan-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(26px, 5vw, 48px); margin-bottom: 22px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #043f39, #087065); box-shadow: 0 20px 50px rgba(5, 58, 52, .18); }
.ajlal-dokan-hero h1 { margin: 8px 0 10px; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.ajlal-dokan-hero p { max-width: 640px; margin: 0; color: rgba(255,255,255,.8); line-height: 1.65; }
.ajlal-dokan-status { flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d4ffed; background: rgba(255,255,255,.08); font-size: .76rem; font-weight: 800; }

.ajlal-dokan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
.ajlal-dokan-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--ajlal-auth-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(5, 58, 52, .07); }
.ajlal-dokan-card h2 { margin: 0 0 8px; color: var(--ajlal-auth-ink); font-size: 1.35rem; }
.ajlal-dokan-card > p { margin: 0 0 22px; color: var(--ajlal-auth-muted); line-height: 1.6; }
.ajlal-dokan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ajlal-dokan-field { display: grid; gap: 8px; }
.ajlal-dokan-field span { font-size: .79rem; font-weight: 800; }
.ajlal-dokan-form .ajlal-dokan-action { grid-column: 1 / -1; }
.ajlal-dokan-actions { display: grid; gap: 10px; }
.ajlal-dokan-action.is-light { color: var(--ajlal-auth-primary); background: #edf8f3; box-shadow: none; }
.ajlal-dokan-action.is-outline { color: var(--ajlal-auth-primary); border: 1px solid var(--ajlal-auth-line); background: #fff; box-shadow: none; }
.ajlal-dokan-steps { display: grid; gap: 12px; margin-top: 20px; }
.ajlal-dokan-step { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.ajlal-dokan-step strong { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--ajlal-auth-primary); background: #eaf7f1; font-size: .76rem; }
.ajlal-dokan-step span { color: var(--ajlal-auth-muted); font-size: .8rem; line-height: 1.45; }
.ajlal-dokan-notice { padding: 13px 15px; margin-bottom: 18px; border-radius: 12px; font-size: .84rem; line-height: 1.5; }
.ajlal-dokan-notice.is-success { color: #155d42; border: 1px solid #bcebd5; background: #edfff6; }
.ajlal-dokan-notice.is-error { color: #92241f; border: 1px solid #ffd2cf; background: #fff3f2; }

@media (max-width: 860px) {
    .ajlal-auth-shell { grid-template-columns: 1fr; }
    .ajlal-auth-intro { padding: 32px 26px; }
    .ajlal-auth-intro h1 { max-width: 680px; font-size: clamp(1.8rem, 7vw, 2.65rem); }
    .ajlal-auth-benefits { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
    .ajlal-auth-benefits > div { display: flex; flex-direction: column; align-items: flex-start; }
    .ajlal-dokan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ajlal-auth-page,
    .ajlal-dokan-page { padding: 12px 10px 96px; }
    .ajlal-auth-shell { border-radius: 19px; }
    .ajlal-auth-intro { padding: 28px 20px; }
    .ajlal-auth-kicker { margin-bottom: 16px; }
    .ajlal-auth-intro > p { font-size: .88rem; }
    .ajlal-auth-benefits { grid-template-columns: 1fr; gap: 8px; }
    .ajlal-auth-benefits > div { display: grid; grid-template-columns: 38px 1fr; padding: 10px 12px; }
    .ajlal-auth-card { padding: 22px 16px 26px; }
    .ajlal-auth-tabs { margin-bottom: 24px; }
    .ajlal-auth-grid,
    .ajlal-role-choice,
    .ajlal-dokan-form { grid-template-columns: 1fr; }
    .ajlal-auth-field-wide { grid-column: auto; }
    .ajlal-auth-form-row { align-items: flex-start; flex-direction: column; }
    .ajlal-dokan-hero { align-items: flex-start; flex-direction: column; border-radius: 18px; }
    .ajlal-dokan-card { padding: 20px 16px; border-radius: 17px; }
    .ajlal-dokan-form .ajlal-dokan-action { grid-column: auto; }
}
