html.des-public-auth body {
    font-family: 'Poppins', 'Cairo', system-ui, sans-serif !important;
}
html:has(.auth-lp),
body:has(.auth-lp) {
    margin: 0;
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    background: #030306;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 212, 191, 0.55) rgba(255, 255, 255, 0.04);
}
html[data-bs-theme="light"]:has(.auth-lp),
html[data-bs-theme="light"]:has(.auth-lp) body {
    background: #f4f6fb;
    scrollbar-color: rgba(13, 148, 136, 0.55) rgba(15, 23, 42, 0.08);
}
html:has(.auth-lp)::-webkit-scrollbar,
body:has(.auth-lp)::-webkit-scrollbar { width: 9px; }
html:has(.auth-lp)::-webkit-scrollbar-track,
body:has(.auth-lp)::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(12,12,22,0.85), rgba(255,255,255,0.02));
    border-radius: 999px;
    margin-block: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
html:has(.auth-lp)::-webkit-scrollbar-thumb,
body:has(.auth-lp)::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, #2dd4bf 0%, #5eead4 35%, #a78bfa 100%);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(3, 3, 6, 0.9);
    background-clip: padding-box;
}
html[data-bs-theme="light"]:has(.auth-lp)::-webkit-scrollbar-track,
html[data-bs-theme="light"]:has(.auth-lp) body::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(15,23,42,0.05), rgba(241,245,249,0.98), rgba(15,23,42,0.05));
    border: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"]:has(.auth-lp)::-webkit-scrollbar-thumb,
html[data-bs-theme="light"]:has(.auth-lp) body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0d9488 0%, #14b8a6 38%, #7c3aed 100%);
    border: 2px solid rgba(244, 246, 251, 0.95);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-lp {
    --al-bg0: #05050a;
    --al-bg1: #0c0c16;
    --al-surface: rgba(255, 255, 255, 0.04);
    --al-border: rgba(255, 255, 255, 0.09);
    --al-text: #eef0f6;
    --al-muted: #949ab3;
    --al-cyan: #2dd4bf;
    --al-violet: #a78bfa;
    font-family: 'Poppins', 'Cairo', system-ui, sans-serif !important;
    color: var(--al-text);
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: clip;
    background: var(--al-bg0);
    box-sizing: border-box;
}
.auth-lp *, .auth-lp *::before, .auth-lp *::after { box-sizing: border-box; }

.auth-lp .form-control,
.auth-lp .form-select,
.auth-lp .btn,
.auth-lp button,
.auth-lp input,
.auth-lp textarea,
.auth-lp select {
    font-family: inherit !important;
}

.auth-lp-bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(167, 139, 250, 0.2), transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 10%, rgba(45, 212, 191, 0.16), transparent 45%),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(52, 211, 153, 0.06), transparent 50%),
        linear-gradient(180deg, var(--al-bg0) 0%, var(--al-bg1) 50%, #050508 100%);
}
.auth-lp-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, black 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, black 15%, transparent 70%);
}
.auth-lp-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.auth-lp-orb--1 { width: 380px; height: 380px; background: var(--al-violet); top: -8%; right: -4%; }
.auth-lp-orb--2 { width: 280px; height: 280px; background: var(--al-cyan); bottom: 5%; left: -6%; opacity: 0.32; }

/* Light theme */
html[data-bs-theme="light"] .auth-lp {
    --al-bg0: #f4f6fb;
    --al-bg1: #e8ecf4;
    --al-surface: rgba(255, 255, 255, 0.88);
    --al-border: rgba(15, 23, 42, 0.1);
    --al-text: #0f172a;
    --al-muted: #64748b;
    --al-cyan: #0d9488;
    --al-violet: #7c3aed;
    color-scheme: light;
}
html[data-bs-theme="light"] .auth-lp-bg-mesh {
    background:
        radial-gradient(ellipse 80% 50% at 18% -15%, rgba(124, 58, 237, 0.14), transparent 52%),
        radial-gradient(ellipse 55% 38% at 88% 8%, rgba(13, 148, 136, 0.12), transparent 48%),
        radial-gradient(ellipse 50% 55% at 50% 100%, rgba(52, 211, 153, 0.06), transparent 52%),
        linear-gradient(180deg, #f4f6fb 0%, #eef1f8 48%, #e8ecf4 100%);
}
html[data-bs-theme="light"] .auth-lp-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}
html[data-bs-theme="light"] .auth-lp-orb { opacity: 0.38; }
html[data-bs-theme="light"] .auth-lp-orb--2 { opacity: 0.26; }
html[data-bs-theme="light"] .auth-lp-gradient {
    background: linear-gradient(105deg, #0f172a 0%, #0d9488 45%, #7c3aed 95%);
    -webkit-background-clip: text;
    background-clip: text;
}
html[data-bs-theme="light"] .auth-lp-dots span:nth-child(3) {
    background: rgba(15, 23, 42, 0.12);
}
html[data-bs-theme="light"] .auth-lp-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(13, 148, 136, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-bs-theme="light"] .auth-lp .form-control {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--al-text);
}
html[data-bs-theme="light"] .auth-lp .form-control::placeholder {
    color: rgba(100, 116, 139, 0.85);
}
html[data-bs-theme="light"] .auth-lp .form-control:focus {
    background: #fff;
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
html[data-bs-theme="light"] .auth-lp .form-check-input {
    background-color: #fff;
    border-color: rgba(15, 23, 42, 0.22);
}
html[data-bs-theme="light"] .auth-lp .invalid-feedback {
    color: #b91c1c;
}
html[data-bs-theme="light"] .auth-lp .alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.38);
    color: #047857;
}
html[data-bs-theme="light"] .auth-lp .alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.38);
    color: #b91c1c;
}
html[data-bs-theme="light"] .auth-lp .alert .btn-close {
    filter: none;
    opacity: 0.55;
}
html[data-bs-theme="light"] .auth-lp-btn-primary {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    box-shadow: 0 4px 24px rgba(13, 148, 136, 0.28);
}
html[data-bs-theme="light"] .auth-lp-btn-primary:hover {
    box-shadow: 0 6px 32px rgba(13, 148, 136, 0.34);
    color: #fff;
}

.auth-lp-top-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.auth-lp-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    background: var(--al-surface);
    color: var(--al-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.auth-lp-theme-btn:hover {
    color: var(--al-text);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.12);
}
html[data-bs-theme="light"] .auth-lp-theme-btn:hover {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}
.auth-lp-lang .dropdown-toggle {
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    background: var(--al-surface);
    color: var(--al-muted);
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
}
.auth-lp-lang .dropdown-toggle:hover,
.auth-lp-lang .dropdown-toggle:focus {
    color: var(--al-text);
    border-color: rgba(45, 212, 191, 0.35);
}
.auth-lp-lang .dropdown-toggle::after {
    margin-inline-start: 0.15rem;
    vertical-align: 0.15em;
}
html[data-bs-theme="light"] .auth-lp-lang .dropdown-toggle:hover,
html[data-bs-theme="light"] .auth-lp-lang .dropdown-toggle:focus {
    border-color: rgba(13, 148, 136, 0.4);
}
.auth-lp-lang-menu.dropdown-menu {
    background: linear-gradient(165deg, #12141c 0%, #0a0c12 100%);
    border: 1px solid var(--al-border);
    border-radius: 0.85rem;
    padding: 0.4rem;
    min-width: 10rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
html[data-bs-theme="light"] .auth-lp-lang-menu.dropdown-menu {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.auth-lp-lang-menu .dropdown-item {
    border-radius: 0.5rem;
    color: var(--al-muted);
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
}
.auth-lp-lang-menu .dropdown-item:hover,
.auth-lp-lang-menu .dropdown-item:focus {
    background: rgba(45, 212, 191, 0.12);
    color: var(--al-text);
}
.auth-lp-lang-menu .dropdown-item.active {
    background: rgba(45, 212, 191, 0.18);
    color: var(--al-text);
}
.auth-lp-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--al-border);
    color: var(--al-cyan);
    flex-shrink: 0;
}
html[data-bs-theme="light"] .auth-lp-lang-flag {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
}
.auth-lp-theme-btn i { font-size: 1.15rem; line-height: 1; }
html[data-bs-theme="dark"] .auth-lp-theme-icon-moon,
html:not([data-bs-theme]) .auth-lp-theme-icon-moon { display: none !important; }
html[data-bs-theme="light"] .auth-lp-theme-icon-sun { display: none !important; }

.auth-lp-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 4vw, 2rem);
    padding-bottom: 2rem;
}

.auth-lp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 1.5rem;
}
.auth-lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.auth-lp-brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--al-border);
}
.auth-lp-brand span {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.auth-lp-brand small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--al-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.auth-lp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--al-muted);
    text-decoration: none;
    border: 1px solid var(--al-border);
    background: var(--al-surface);
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.auth-lp-back:hover {
    color: var(--al-text);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.1);
}
[dir="rtl"] .auth-lp-back-icon { transform: scaleX(-1); }

.auth-lp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.auth-lp-layout {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    max-width: 960px;
    width: 100%;
}
@media (min-width: 992px) {
    .auth-lp-layout { grid-template-columns: 1fr min(420px, 100%); }
}

.auth-lp-aside {
    text-align: start;
}
[dir="rtl"] .auth-lp-aside { text-align: start; }
.auth-lp-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--al-violet);
    margin-bottom: 0.75rem;
}
.auth-lp-aside h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    font-family: 'Poppins', 'Cairo', system-ui, sans-serif !important;
}
[dir="rtl"] .auth-lp-aside h1 {
    letter-spacing: normal;
}
.auth-lp-gradient {
    font-family: 'Poppins', 'Cairo', system-ui, sans-serif !important;
    background: linear-gradient(105deg, #fff 0%, var(--al-cyan) 42%, var(--al-violet) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-lp-aside p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--al-muted);
    max-width: 28rem;
}
.auth-lp-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.75rem;
}
.auth-lp-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--al-border);
}
.auth-lp-dots span:nth-child(1) { background: var(--al-cyan); box-shadow: 0 0 12px rgba(45, 212, 191, 0.5); }
.auth-lp-dots span:nth-child(2) { background: var(--al-violet); opacity: 0.85; }
.auth-lp-dots span:nth-child(3) { background: rgba(255,255,255,0.15); }

.auth-lp-card {
    border-radius: 1.35rem;
    border: 1px solid var(--al-border);
    background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(45, 212, 191, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.auth-lp-card-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--al-cyan), var(--al-violet));
    opacity: 0.9;
}
.auth-lp-card-inner {
    padding: clamp(1.5rem, 4vw, 2rem);
}

.auth-lp-card .auth-logo img {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 0.5rem;
}
.auth-lp-sub {
    font-size: 0.9rem;
    color: var(--al-muted);
    margin: 0.5rem 0 0;
}

.auth-lp .form-label {
    color: var(--al-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.auth-lp .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--al-border);
    color: var(--al-text);
    border-radius: 0.65rem;
    padding: 0.65rem 0.9rem;
}
.auth-lp .form-control::placeholder { color: rgba(148, 154, 179, 0.65); }
.auth-lp .form-control:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(45, 212, 191, 0.45);
    color: var(--al-text);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
.auth-lp .form-control.is-invalid {
    border-color: rgba(248, 113, 113, 0.55);
}
.auth-lp .invalid-feedback {
    color: #fca5a5;
    font-size: 0.8125rem;
}
.auth-lp .form-check-label { color: var(--al-muted); font-size: 0.875rem; }
.auth-lp .form-check-input {
    background-color: rgba(0, 0, 0, 0.35);
    border-color: var(--al-border);
}
.auth-lp .form-check-input:checked {
    background-color: var(--al-cyan);
    border-color: var(--al-cyan);
}
.auth-lp a.text-muted,
.auth-lp .auth-lp-forgot {
    color: var(--al-muted) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.auth-lp a.text-muted:hover,
.auth-lp .auth-lp-forgot:hover { color: var(--al-cyan) !important; }

.auth-lp .auth-pass-inputgroup .form-control { padding-inline-end: 2.75rem; }
.auth-lp .password-addon {
    color: var(--al-muted) !important;
    padding: 0.5rem 0.75rem;
    height: 100%;
    display: flex;
    align-items: center;
}
.auth-lp .password-addon:hover { color: var(--al-cyan) !important; }

.auth-lp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--al-cyan), #14b8a6);
    color: #020617;
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-lp-btn-primary:hover {
    color: #020617;
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.4);
}
.auth-lp-btn-primary:active { transform: scale(0.99); }
.auth-lp-btn-primary.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.95;
}
.auth-lp-btn-primary .login-submit-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.14em;
}

.auth-lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    background: transparent;
    color: var(--al-text);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-lp-btn-ghost:hover {
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.08);
    color: var(--al-text);
}

.auth-lp-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    color: var(--al-muted);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-lp-divider::before,
.auth-lp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--al-border), transparent);
}

.auth-lp-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.auth-lp-social .btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--al-border);
    background: var(--al-surface);
    color: var(--al-muted);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.auth-lp-social .btn:hover {
    border-color: rgba(45, 212, 191, 0.35);
    color: var(--al-cyan);
    transform: translateY(-2px);
}

.auth-lp .alert {
    border-radius: 0.75rem;
    border-width: 1px;
}
.auth-lp .alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}
.auth-lp .alert-danger {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}
.auth-lp .alert .btn-close {
    filter: invert(1);
    opacity: 0.55;
}

.auth-lp-footer {
    max-width: 1100px;
    width: 100%;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--al-muted);
}
.auth-lp-footer a {
    color: var(--al-cyan);
    text-decoration: none;
    font-weight: 600;
}
.auth-lp-footer a:hover { text-decoration: underline; }

.auth-lp-signup {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--al-muted);
}
.auth-lp-signup a {
    color: var(--al-cyan);
    font-weight: 600;
    text-decoration: none;
}
.auth-lp-signup a:hover { text-decoration: underline; }

@media (max-width: 991px) {
    .auth-lp-aside { text-align: center; }
    .auth-lp-aside p { margin-inline: auto; }
    .auth-lp-dots { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-lp-btn-primary:active { transform: none; }
    .auth-lp-social .btn:hover { transform: none; }
}
