:root { --app-sidebar-width: 15rem; }
body { font-family: Tahoma, Arial, sans-serif; }
.navbar-vertical .navbar-brand { white-space: normal; line-height: 1.5; }
.app-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.app-brand-logo { width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; object-fit: contain; border-radius: .375rem; }
.app-brand-icon { flex: 0 0 auto; font-size: 1.75rem; }
.app-brand-name { overflow-wrap: anywhere; }
.ti { font-size: 1.25rem; vertical-align: -0.2em; }
[dir="rtl"] .ts-control { text-align: right; }

/* Tom Select expects Bootstrap --bs-* variables; Tabler exposes --tblr-*. */
.ts-dropdown,
.ts-dropdown.form-control,
.ts-dropdown.form-select {
    background-color: var(--tblr-bg-surface, #fff) !important;
    color: var(--tblr-body-color, #182433);
    z-index: 1060;
}

.ts-dropdown .optgroup-header {
    background-color: var(--tblr-bg-surface, #fff);
}

.ts-dropdown .active {
    background-color: var(--tblr-bg-surface-secondary, #f3f4f6);
}

/* Authentication */
.auth-page { min-height: 100vh; margin: 0; background: #f6f8fb; color: #172033; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(34rem, 1.12fr) minmax(28rem, .88fr); }
.auth-visual { position: relative; overflow: hidden; min-height: 100vh; color: #fff; background: radial-gradient(circle at 20% 5%, #2563eb 0, transparent 34%), linear-gradient(145deg, #101d38 0%, #132d53 52%, #0b5a68 120%); isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 85%); z-index: -1; }
.auth-visual-content { min-height: 100%; display: flex; flex-direction: column; position: relative; z-index: 2; padding: clamp(2rem, 4vw, 4.5rem); }
.auth-brand { display: flex; align-items: center; gap: 1rem; }
.auth-brand-logo { width: 4.25rem; height: 4.25rem; padding: .45rem; object-fit: contain; border-radius: 1.1rem; background: rgba(255,255,255,.96); box-shadow: 0 16px 45px rgba(0,0,0,.18); }
.auth-brand-mark { width: 4rem; height: 4rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 1.1rem; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.auth-brand-mark i { font-size: 2.1rem; }
.auth-brand strong { display: block; max-width: 30rem; font-size: 1.25rem; line-height: 1.45; }
.auth-brand span:not(.auth-brand-mark) { display: block; margin-top: .2rem; color: rgba(255,255,255,.65); font-size: .82rem; }
.auth-message { margin: auto 0; max-width: 46rem; padding: 4rem 0 2rem; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,.16); border-radius: 2rem; color: #bce9f1; background: rgba(255,255,255,.08); font-size: .82rem; }
.auth-message h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 4.7vw, 5.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.06em; }
.auth-message h1 em { color: #64d9df; font-style: normal; }
.auth-message p { max-width: 39rem; margin: 1.6rem 0 0; color: rgba(255,255,255,.7); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.9; }
.construction-scene { position: absolute; inset-inline: 1.5rem; bottom: 3.5rem; z-index: -1; color: rgba(134,229,232,.32); }
.construction-scene svg { display: block; width: 100%; max-height: 39vh; overflow: visible; }
.construction-scene path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.scene-grid { stroke-dasharray: 4 12; opacity: .35; }
.scene-buildings { color: rgba(255,255,255,.2); }
.scene-crane { stroke-dasharray: 900; stroke-dashoffset: 900; animation: auth-draw 2.3s .25s ease-out forwards; }
.scene-hook { animation: auth-hook 4s 2.5s ease-in-out infinite; }
.scene-pulse { animation: auth-pulse 2.4s ease-in-out infinite; }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(5px); opacity: .5; z-index: 0; }
.auth-glow-one { width: 24rem; height: 24rem; top: -12rem; left: -8rem; background: rgba(48,144,255,.32); }
.auth-glow-two { width: 28rem; height: 28rem; bottom: -18rem; right: 12%; background: rgba(31,192,191,.2); }
.auth-visual-footer { display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.55); font-size: .76rem; }
.auth-visual-footer span { display: flex; align-items: center; gap: .4rem; }
.auth-form-panel { min-height: 100vh; display: grid; place-items: center; padding: clamp(2rem, 6vw, 6rem); background: radial-gradient(circle at 85% 8%, rgba(32,107,196,.08), transparent 28%), #f8fafc; }
.auth-form-wrap { width: 100%; max-width: 29rem; }
.auth-mobile-brand { display: none; }
.auth-form-heading { margin-bottom: 2.25rem; }
.auth-form-icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; margin-bottom: 1.25rem; color: var(--tblr-primary); background: rgba(32,107,196,.1); border-radius: 1rem; }
.auth-form-icon i { font-size: 1.75rem; }
.auth-form-heading h2 { margin: 0 0 .55rem; font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 800; letter-spacing: -.04em; }
.auth-form-heading p { margin: 0; color: #667085; font-size: .96rem; }
.auth-form .form-label { margin-bottom: .65rem; color: #344054; font-weight: 600; }
.auth-input { position: relative; }
.auth-input > .ti { position: absolute; right: 1rem; top: 50%; z-index: 2; transform: translateY(-50%); color: #98a2b3; }
.auth-input .form-control { min-height: 3.6rem; padding-right: 3rem; padding-left: 3rem; border: 1px solid #d8dee9; border-radius: .85rem; background: rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(16,24,40,.03); transition: border-color .2s, box-shadow .2s, transform .2s; }
.auth-input .form-control:focus { border-color: rgba(32,107,196,.6); box-shadow: 0 0 0 .25rem rgba(32,107,196,.1), 0 8px 24px rgba(16,24,40,.06); transform: translateY(-1px); }
.auth-password-toggle { position: absolute; left: .75rem; top: 50%; z-index: 3; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: .55rem; color: #667085; background: transparent; }
.auth-password-toggle:hover { color: var(--tblr-primary); background: rgba(32,107,196,.08); }
.auth-security-note { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 1.5rem; color: #8490a4; font-size: .75rem; }
.auth-security-note i { color: #2fb344; }
.auth-submit { min-height: 3.6rem; display: flex; align-items: center; justify-content: center; gap: .7rem; border: 0; border-radius: .85rem; background: linear-gradient(135deg, #206bc4, #1456a0); box-shadow: 0 14px 30px rgba(32,107,196,.24); transition: transform .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(32,107,196,.32); }
.auth-submit.is-loading i { animation: auth-slide .8s ease-in-out infinite alternate; }
.auth-help { margin: 2rem 0 0; text-align: center; color: #98a2b3; font-size: .78rem; }
.auth-reveal { animation: auth-reveal .75s cubic-bezier(.2,.8,.2,1) both; }
.auth-form-wrap.auth-reveal { animation-delay: .12s; }
@keyframes auth-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-draw { to { stroke-dashoffset: 0; } }
@keyframes auth-hook { 50% { transform: translateY(12px); } }
@keyframes auth-pulse { 50% { opacity: .35; transform: translateY(-5px); } }
@keyframes auth-slide { to { transform: translateX(-5px); } }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-visual { display: none; } .auth-form-panel { padding: 2rem 1.25rem; } .auth-mobile-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 3rem; color: #1d2939; } .auth-mobile-brand img,.auth-mobile-brand > i { width: 3rem; height: 3rem; object-fit: contain; padding: .35rem; border-radius: .8rem; background: #fff; box-shadow: 0 8px 22px rgba(16,24,40,.08); } .auth-mobile-brand > i { display: grid; place-items: center; color: var(--tblr-primary); font-size: 1.65rem; } .auth-mobile-brand strong { line-height: 1.5; } }
@media (prefers-reduced-motion: reduce) { .auth-reveal,.scene-crane,.scene-hook,.scene-pulse,.auth-submit.is-loading i { animation: none !important; } * { scroll-behavior: auto !important; } }

.home-coming-soon { background: linear-gradient(135deg, rgba(32,107,196,.08), rgba(47,179,68,.05)); }
.home-coming-glow { position: absolute; width: 22rem; height: 22rem; inset-inline-end: -8rem; top: -11rem; border-radius: 50%; background: radial-gradient(circle, rgba(32,107,196,.16), transparent 68%); }
.home-coming-icon { width: 10rem; height: 10rem; display: grid; place-items: center; border: 1px solid rgba(32,107,196,.15); border-radius: 2.25rem; color: var(--tblr-primary); background: rgba(255,255,255,.72); box-shadow: 0 1.5rem 4rem rgba(32,107,196,.12); transform: rotate(-4deg); }
.home-coming-icon i { font-size: 5rem; }
