/* Ehtesham Law — right-side account panel (log in · sign up · forgot password).
 * Own "el-ap" prefix. Markup: resources/views/front/partials/auth-panel.blade.php
 */
.el-auth-panel { position: fixed; inset: 0; z-index: 100001; font-family: var(--el-font); }
.el-auth-panel[hidden] { display: none; }
.el-auth-panel *, .el-auth-panel *::before, .el-auth-panel *::after { box-sizing: border-box; }
.el-ap__scrim { position: absolute; inset: 0; background: rgba(4, 12, 22, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s ease; will-change: opacity; }
.el-auth-panel.is-open .el-ap__scrim { opacity: 1; }

.el-ap { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -40px 0 80px -30px rgba(4, 12, 22, .6); transform: translate3d(104%, 0, 0); transition: transform .55s cubic-bezier(.22, 1, .36, 1); overflow: hidden; will-change: transform; contain: layout paint; backface-visibility: hidden; }
.el-auth-panel.is-open .el-ap { transform: none; }

/* Header band with a half-shadow photo */
.el-ap__head { position: relative; isolation: isolate; flex-shrink: 0; padding: 26px 28px 0; color: #b9c8d8; background: #061423; overflow: hidden; }
.el-ap__head > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .55; }
.el-ap__head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 20, 35, .55) 0%, rgba(6, 20, 35, .88) 55%, #061423 100%), radial-gradient(70% 90% at 100% 0%, rgba(242, 165, 43, .3), transparent 60%); }
.el-ap__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s, transform .3s; }
.el-ap__x:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }
.el-ap__x:focus-visible { outline: 3px solid #ffcf70; outline-offset: 2px; }
.el-ap__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffcf70; }
.el-ap__kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f2a52b, transparent); }
.el-ap__head h2 { margin: 12px 0 6px; padding-right: 40px; color: #fff !important; font: 600 clamp(26px, 4vw, 32px)/1.15 var(--el-font-display) !important; letter-spacing: -.02em; }
.el-ap__head p { margin: 0 0 20px; font-size: 14.5px; color: #a9bdd0; }
.el-ap__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin-bottom: 20px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.el-ap__tabs button { position: relative; z-index: 1; height: 42px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 800 14.5px var(--el-font); color: #c7d5e3; transition: color .3s; }
.el-ap__tabs button[aria-selected="true"] { color: #061423; }
.el-ap__tabs button:focus-visible { outline: 3px solid #ffcf70; outline-offset: -3px; }
.el-ap__ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 7px); border-radius: 999px; background: linear-gradient(135deg, #ffcf70, #f2a52b); box-shadow: 0 10px 22px -10px rgba(242, 165, 43, .9); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.el-ap[data-view="register"] .el-ap__ink { transform: translateX(calc(100% + 4px)); }
.el-ap[data-view="forgot"] .el-ap__tabs, .el-ap[data-view="sent"] .el-ap__tabs { display: none; }
.el-ap[data-view="forgot"] .el-ap__head p, .el-ap[data-view="sent"] .el-ap__head p { margin-bottom: 24px; }

/* Body */
.el-ap__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; }
.el-ap__view[hidden] { display: none; }
.el-ap__view { animation: el-ap-in .45s cubic-bezier(.2, .8, .2, 1); }
.el-ap__view.is-back { animation-name: el-ap-in-back; }
.el-ap__form { display: flex; flex-direction: column; gap: 15px; margin: 0; }
.el-ap__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.el-ap__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.el-ap__field > label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; font-size: 13px; font-weight: 800; color: #0d1b2a; }
.el-ap__field > label small { font-weight: 600; color: #6a7687; font-size: 12px; }
.el-ap__control { position: relative; display: flex; align-items: center; height: 50px; border: 1.5px solid #e3e8ef; border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.el-ap__control:focus-within { border-color: #1668c4; box-shadow: 0 0 0 4px rgba(22, 104, 196, .13); }
.el-ap__control > i { width: 44px; flex-shrink: 0; text-align: center; color: #8a96a6; font-size: 14px; }
.el-ap__control input, .el-ap__control select { flex: 1; min-width: 0; height: 100%; margin: 0; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; padding: 0 14px 0 0; font: 600 15px var(--el-font); color: #0d1b2a; }
.el-ap__control input::placeholder { color: #a5afbd; font-weight: 500; }
.el-ap__control--select select { padding-left: 14px; cursor: pointer; appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236a7687' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 34px; }
.el-ap__cc { align-self: stretch; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; margin-right: 12px; border-right: 1.5px solid #e3e8ef; font-weight: 800; font-size: 15px; color: #0d1b2a; }
.el-ap__cc::before { content: ""; width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.el-ap__eye { flex-shrink: 0; width: 44px; height: 100%; border: 0; background: none; color: #8a96a6; cursor: pointer; }
.el-ap__eye:hover { color: #0d1b2a; }
.el-ap__err { font-size: 12.5px; font-weight: 600; color: #c62828; }
.el-ap__err:empty { display: none; }
.el-ap__field.is-bad .el-ap__control { border-color: #c62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .1); animation: el-ap-shake .35s; }
.el-ap__meter { height: 5px; border-radius: 5px; background: #eef1f5; overflow: hidden; margin-top: 2px; }
.el-ap__meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .35s, background .35s; }
.el-ap__check { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.45; color: #3d4a5c; cursor: pointer; }
.el-ap__check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.el-ap__tick { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; border-radius: 6px; border: 1.5px solid #c3ccd8; display: grid; place-items: center; color: transparent; font-size: 11px; transition: all .2s; }
.el-ap__check input:checked + .el-ap__tick { background: #061423; border-color: #061423; color: #ffcf70; }
.el-ap__check input:focus-visible + .el-ap__tick { box-shadow: 0 0 0 3px rgba(242, 165, 43, .45); }
.el-ap__check a { font-weight: 700; color: #1668c4 !important; }
.el-ap__link { display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: 700 13.5px var(--el-font); color: #1668c4; text-decoration: none; }
.el-ap__link:hover { text-decoration: underline; }
.el-ap__alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: #fdecec; color: #9b1c1c; border: 1px solid #f3c7c7; animation: el-ap-pop .35s cubic-bezier(.34, 1.4, .64, 1); }
.el-ap__alert[hidden] { display: none; }
.el-ap__alert a, .el-ap__alert button { font-weight: 800; color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.el-ap__flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: #eef5fd; color: #0f4e94; }
.el-ap__flash[hidden] { display: none; }
.el-ap__flash--ok { background: #e7f7ee; color: #0d6b3c; }
.el-ap__flash--bad { background: #fdecec; color: #9b1c1c; }
.el-ap__flash i { margin-top: 3px; }
.el-ap__note { margin: 0; padding: 12px 14px; border-radius: 14px; background: #f7f4ee; font-size: 14px; line-height: 1.5; color: #5a4a2c; }
.el-ap__note i { color: #b46f00; margin-right: 4px; }
.el-ap__btn { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border: 0; border-radius: 999px; cursor: pointer; background: #061423; color: #fff; font: 800 15.5px var(--el-font); box-shadow: 0 16px 32px -16px rgba(6, 20, 35, .7); transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s; }
.el-ap__btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.el-ap__btn:hover { transform: translateY(-2px); }
.el-ap__btn:hover::after { transform: translateX(120%); }
.el-ap__btn:focus-visible { outline: 3px solid #f2a52b; outline-offset: 3px; }
.el-ap__btn:disabled { cursor: progress; opacity: .8; transform: none; }
.el-ap__btn--gold { background: linear-gradient(135deg, #ffcf70, #f2a52b); color: #061423; box-shadow: 0 16px 32px -14px rgba(242, 165, 43, .9); }
.el-ap__alt { margin: 2px 0 0; text-align: center; font-size: 14px; color: #6a7687; }
.el-ap__done { text-align: center; padding-top: 18px; }
.el-ap__done-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, #2fcf85, #128a4e); box-shadow: 0 0 0 12px #e7f7ee; animation: el-ap-pop .5s cubic-bezier(.34, 1.4, .64, 1); }
.el-ap__done h3 { margin: 0 0 8px; font: 600 26px var(--el-font-display) !important; color: #0d1b2a !important; }
.el-ap__done p { margin: 0 0 8px; font-size: 15px; color: #3d4a5c; line-height: 1.55; }
.el-ap__done .el-ap__small { font-size: 13px; color: #6a7687; margin-bottom: 24px; }

.el-ap__foot { flex-shrink: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #eef1f5; background: #fafbfd; font-size: 12.5px; font-weight: 700; color: #6a7687; }
.el-ap__foot i { color: #b46f00; margin-right: 5px; }

@media (max-width: 479.98px) {
    .el-ap__head { padding: 22px 20px 0; }
    .el-ap__body { padding: 20px 20px 24px; }
    .el-ap__row { grid-template-columns: 1fr; }
}
@media (max-height: 700px) { .el-ap__head p { display: none; } .el-ap__head h2 { margin-bottom: 14px; } }

@keyframes el-ap-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes el-ap-in-back { from { opacity: 0; transform: translateX(-22px); } }
@keyframes el-ap-pop { from { opacity: 0; transform: scale(.92); } }
@keyframes el-ap-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .el-ap, .el-ap__scrim, .el-ap__view, .el-ap__ink { transition: none; animation: none; } }

/* ---------- Full auth pages (/login, /register, /forgot-password) behind the panel ---------- */
.el-auth__side { isolation: isolate; }
.el-auth__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .28; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
.el-auth__js { display: none; max-width: 440px; text-align: center; }
.el-js .el-auth--panel .el-auth__js { display: block; animation: el-ap-pop .5s cubic-bezier(.34, 1.4, .64, 1); }
.el-js .el-auth--panel .el-auth__card { display: none; }
.el-auth__js-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; font-size: 30px; color: #061423; background: linear-gradient(135deg, #ffcf70, #f2a52b); box-shadow: 0 20px 40px -18px rgba(242, 165, 43, .9); }
.el-auth__js h1 { margin: 0 0 8px; font: 600 clamp(28px, 4vw, 38px)/1.15 var(--el-font-display) !important; color: #0d1b2a !important; }
.el-auth__js p { margin: 0 0 24px; color: #6a7687; font-size: 16px; }
.el-auth__js-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Sign up in 3 steps: mobile → OTP → details ---------- */
.el-ap__steps { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; }
.el-ap__steps li { flex: 1; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; background: #f4f6fa; color: #6a7687; font-size: 12.5px; font-weight: 800; }
.el-ap__steps li span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e3e8ef; color: #3d4a5c; font-size: 11.5px; }
.el-ap__steps[data-ap-steps="1"] li[data-n="1"], .el-ap__steps[data-ap-steps="2"] li:is([data-n="1"], [data-n="2"]), .el-ap__steps[data-ap-steps="3"] li { background: #fff6e6; color: #061423; }
.el-ap__steps[data-ap-steps="1"] li[data-n="1"] span, .el-ap__steps[data-ap-steps="2"] li:is([data-n="1"], [data-n="2"]) span, .el-ap__steps[data-ap-steps="3"] li span { background: #f2a52b; color: #061423; }
.el-ap__label { font-size: 13px; font-weight: 800; color: #0d1b2a; }
.el-ap__seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.el-ap__seg label { margin: 0; cursor: pointer; }
.el-ap__seg input { position: absolute; opacity: 0; pointer-events: none; }
.el-ap__seg span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border: 1.5px solid #e3e8ef; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: #3d4a5c; transition: border-color .2s, background .2s; }
.el-ap__seg input:checked + span { border-color: #061423; background: #061423; color: #fff; }
.el-ap__seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 165, 43, .45); }
.el-ap__seg .fa-whatsapp { color: #25d366; }
.el-ap__code { letter-spacing: .5em; font-size: 20px !important; font-weight: 800 !important; }
.el-ap__note--test { background: #fff4e0; color: #7a4b00; }
.el-ap__note--ok { background: #e7f6ee; color: #0f6b3c; }
.el-ap__note .el-ap__link { font-size: 13px; }
.el-ap__err .el-ap__link { font-size: 12.5px; margin-left: 4px; }

/* “Welcome back” (an existing account verified by the code): logged in, optional new password */
.el-ap[data-view="welcome"] .el-ap__tabs { display: none; }
.el-ap__welcome a.el-ap__btn, .el-ap__welcome a.el-ap__btn:hover { text-decoration: none; color: #fff; }
.el-ap__welcome .el-ap__small { margin-top: 14px; }
.el-ap__wb-form { margin-top: 16px; text-align: left; }
.el-ap__welcome .el-ap__note--ok { margin-top: 14px; text-align: left; }
