/* LardhGIS sign-in / sign-up: glass split screen, live monitor, cinematic zoom */
:root {
  --bg: #0a0803; --ink: #e2e8f0; --ink2: #94a3b8; --ink3: #64748b;
  --glass: rgba(28, 22, 12, .55); --glass2: rgba(44, 35, 20, .55); --line: rgba(148, 163, 184, .16); --line2: rgba(148, 163, 184, .28);
  --cyan: #d9c48e; --green: #e0c88a; --red: #f43f5e; --amber: #f59e0b;
  --field: rgba(12, 9, 3, .55); --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  --grad: linear-gradient(135deg, #d9c48e, #e0c88a);
}
:root[data-theme="light"] {
  --bg: #f8f3e6; --ink: #0f172a; --ink2: #475569; --ink3: #64748b;
  --glass: rgba(255, 255, 255, .72); --glass2: rgba(255, 255, 255, .8); --line: rgba(28, 22, 12, .1); --line2: rgba(28, 22, 12, .18);
  --field: rgba(255, 255, 255, .9); --shadow: 0 30px 70px -25px rgba(28, 22, 12, .3);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.auth-body { background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body.auth-body { font-family: 'IBM Plex Sans Arabic', Inter, system-ui, sans-serif; }
.hidden { display: none !important; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; }

/* background: drifting glows + a faint grid */
.gk-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gk-bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.gk-bg .o1 { width: 560px; height: 560px; background: rgba(189, 160, 98, .32); top: -180px; left: -140px; }
.gk-bg .o2 { width: 520px; height: 520px; background: rgba(224, 200, 138, .24); bottom: -200px; right: 8%; animation-delay: -6s; }
.gk-bg .o3 { width: 380px; height: 380px; background: rgba(168, 137, 63, .2); top: 30%; left: 45%; animation-delay: -12s; }
:root[data-theme="light"] .gk-bg i { opacity: .35; }
.gk-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.auth-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 560px) 1fr; gap: 28px; padding: 24px; transition: transform .9s cubic-bezier(.7, 0, .2, 1), opacity .7s; }

/* ---------------- form side */
.form-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-top { display: flex; align-items: center; gap: 10px; }
.mini-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.mini-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #1c1608; box-shadow: 0 6px 20px -6px rgba(217, 196, 142, .6); flex: none; }
.mark svg { width: 22px; height: 22px; }
.top-actions { margin-inline-start: auto; display: flex; gap: 8px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink2); cursor: pointer; text-decoration: none; font-size: 13px; backdrop-filter: blur(10px); transition: color .2s, border-color .2s; }
.pill-btn:hover { color: var(--ink); border-color: var(--line2); }
.pill-btn .ic { width: 16px; height: 16px; }
[dir="rtl"] #backSite .ic { transform: scaleX(-1); }

.auth-card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 34px 36px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
.card-head { margin-bottom: 20px; }
.card-head > * { animation: rise .5s both; }
.card-head > :nth-child(2) { animation-delay: .06s; }
.card-head > :nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.kicker { display: inline-block; font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.card-head h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.muted { color: var(--ink2); margin: 0; }

.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs button { position: relative; z-index: 1; height: 38px; border: 0; background: none; cursor: pointer; color: var(--ink2); font-weight: 600; border-radius: 10px; transition: color .25s; }
.auth-tabs button.on { color: #1c1608; }
.tab-ink { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(217, 196, 142, .55); transition: transform .35s cubic-bezier(.5, 0, .2, 1); }
.auth-tabs[data-mode="signup"] .tab-ink { transform: translateX(100%); }
[dir="rtl"] .auth-tabs[data-mode="signup"] .tab-ink { transform: translateX(-100%); }

.auth-msg { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid; animation: rise .3s both; overflow-wrap: anywhere; }
.auth-msg.error { background: rgba(224, 200, 138, .1); border-color: rgba(224, 200, 138, .35); color: #fda4af; }
.auth-msg.success { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); color: #6ee7b7; }
.auth-msg.info { background: rgba(217, 196, 142, .08); border-color: rgba(217, 196, 142, .3); color: #a5f3fc; }
:root[data-theme="light"] .auth-msg.error { color: #be123c; } :root[data-theme="light"] .auth-msg.success { color: #047857; } :root[data-theme="light"] .auth-msg.info { color: #0e7490; }
.auth-msg .ic { margin-top: 1px; }
.dev-link { margin-top: 6px; font-size: 12.5px; }
.dev-link a { word-break: break-all; }

.auth-form { display: flex; flex-direction: column; gap: 13px; animation: rise .35s both; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ifield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ifield-label { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.ifield-label em { font-style: normal; font-weight: 400; color: var(--ink3); }
.ifield-box { position: relative; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.ifield-box > .ic { color: var(--ink3); transition: color .2s; }
.ifield-box:focus-within { border-color: rgba(217, 196, 142, .6); box-shadow: 0 0 0 4px rgba(217, 196, 142, .12); }
.ifield-box:focus-within > .ic { color: var(--cyan); }
.ifield-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; }
.ifield-box input::placeholder { color: var(--ink3); }
.ifield-hint { font-size: 12px; color: var(--ink3); margin-top: -4px; }
.ifield.invalid .ifield-box { border-color: rgba(224, 200, 138, .7); box-shadow: 0 0 0 4px rgba(224, 200, 138, .12); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.eye { border: 0; background: none; color: var(--ink3); cursor: pointer; padding: 4px; display: grid; }
.eye:hover { color: var(--ink); }
.match-ic { color: #10b981; opacity: 0; transform: scale(.5); transition: .25s; display: grid; }
.match-ic.on { opacity: 1; transform: none; }
.trial-note { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 12px; font-size: 13px; color: #e0c88a; background: rgba(189, 160, 98, .08); border: 1px dashed rgba(189, 160, 98, .4); }
:root[data-theme="light"] .trial-note { color: #047857; }

.strength { display: flex; align-items: center; gap: 10px; }
.strength .bars { display: flex; gap: 4px; }
.strength .bars i { width: 28px; height: 4px; border-radius: 4px; background: var(--line2); transition: background .25s; }
.strength small { font-size: 12px; color: var(--ink3); }
.strength[data-score="1"] .bars i:nth-child(-n+1) { background: var(--red); }
.strength[data-score="2"] .bars i:nth-child(-n+2) { background: var(--amber); }
.strength[data-score="3"] .bars i:nth-child(-n+3) { background: #84cc16; }
.strength[data-score="4"] .bars i { background: #10b981; }

.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 700; color: #1c1608; background: var(--grad); box-shadow: 0 12px 30px -10px rgba(217, 196, 142, .6); transition: transform .15s, box-shadow .2s, filter .2s; overflow: hidden; margin-top: 4px; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.cta:hover::after { transform: translateX(120%); }
.cta:hover { filter: brightness(1.06); box-shadow: 0 16px 36px -10px rgba(217, 196, 142, .75); }
.cta:active { transform: translateY(1px); }
[dir="rtl"] .cta .ic { transform: scaleX(-1); }
.cta .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid rgba(4, 17, 28, .25); border-top-color: #1c1608; animation: spin .7s linear infinite; }
.cta.loading { pointer-events: none; }
.cta.loading > span, .cta.loading > .ic { opacity: .35; }
.cta.loading .spinner { display: block; position: absolute; }
.cta.success { background: linear-gradient(135deg, #10b981, #059669); color: #ecfdf5; }
.cta .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .05s forwards; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.link-btn { border: 0; background: none; color: var(--cyan); cursor: pointer; font-size: 13px; padding: 0; }
.switch-line { margin: 4px 0 0; text-align: center; color: var(--ink2); font-size: 13.5px; }
.link-inline { border: 0; background: none; color: var(--cyan); cursor: pointer; font-weight: 600; padding: 0; }
.link-inline:hover, .link-btn:hover { text-decoration: underline; }

.sent { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: rise .4s both; }
.sent h2 { margin: 6px 0 0; font-size: 22px; }
.sent .cta { width: 100%; }
.envelope svg { width: 130px; height: 98px; }
.env-body { fill: rgba(217, 196, 142, .1); stroke: var(--cyan); stroke-width: 2.5; }
.env-flap { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw .7s .15s forwards; }
.env-badge { fill: #bda062; transform-origin: 98px 24px; animation: pop .4s .7s both; }
.env-check { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s 1s forwards; }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
.auth-card.is-sent .card-head { display: none; }
.auth-foot { font-size: 12.5px; text-align: center; color: var(--ink3); }
.auth-foot a { color: var(--ink2); }

/* ---------------- visual side */
.visual-side { position: relative; display: flex; flex-direction: column; gap: 20px; justify-content: center; padding: 28px 20px 28px 12px; min-width: 0; }
.vis-head .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 11px/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #e0c88a; background: rgba(189, 160, 98, .1); border: 1px solid rgba(189, 160, 98, .3); }
.vis-head .badge i { width: 7px; height: 7px; border-radius: 50%; background: #bda062; box-shadow: 0 0 0 0 rgba(189, 160, 98, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(189, 160, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(189, 160, 98, 0); } }
.vis-head h2 { margin: 14px 0 8px; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.vis-head h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vis-head p { margin: 0; color: var(--ink2); max-width: 620px; }

.monitor { position: relative; border-radius: 18px; overflow: hidden; background: #050b18; border: 1px solid rgba(148, 163, 184, .22); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(217, 196, 142, .08), 0 0 60px -10px rgba(217, 196, 142, .25); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .8s cubic-bezier(.3, 0, .2, 1); transform-origin: center; }
[dir="rtl"] .monitor { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); }
.monitor:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.m-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: rgba(28, 22, 12, .95); border-bottom: 1px solid rgba(148, 163, 184, .15); font: 500 12px 'JetBrains Mono', monospace; color: #64748b; direction: ltr; }
.m-bar > i { width: 10px; height: 10px; border-radius: 50%; }
.m-bar span { margin-inline-start: 10px; }
.m-bar b { color: #a5f3fc; font-weight: 500; }
.m-bar em { margin-inline-start: auto; font-style: normal; color: #e0c88a; }
.m-screen { position: relative; aspect-ratio: 16 / 9.4; max-height: 56vh; width: 100%; }
.m-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-term { position: absolute; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); padding: 12px 14px; border-radius: 12px; background: rgba(12, 9, 3, .82); border: 1px solid rgba(217, 196, 142, .25); backdrop-filter: blur(8px); font: 500 12.5px/1.75 'JetBrains Mono', monospace; color: #e2e8f0; direction: ltr; text-align: left; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.m-term .ln { display: flex; gap: 8px; white-space: nowrap; overflow: hidden; }
.m-term .ln.dim { color: #64748b; }
.m-term .k { color: #d9c48e; flex: none; }
.m-term .k::before { content: '> '; color: #475569; }
.m-term .v { overflow: hidden; text-overflow: ellipsis; color: #f8fafc; }
.m-term .v.typing { color: #fde68a; }
.m-term .ln.flash .v { animation: flash .35s; }
@keyframes flash { from { color: #d9c48e; text-shadow: 0 0 10px rgba(217, 196, 142, .8); } }
.m-term .status .v { color: #94a3b8; }
.m-term .status .v.ok { color: #e0c88a; }
.m-term .status .v.err { color: #ecd9a6; }
.m-term .status .v.busy { color: #fbbf24; }
.caret { display: inline-block; width: 7px; height: 14px; margin-top: 5px; background: #d9c48e; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: #e2e8f0; background: rgba(28, 22, 12, .78); border: 1px solid rgba(148, 163, 184, .22); backdrop-filter: blur(8px); animation: float 6s ease-in-out infinite; }
.m-chip.c1 { top: 16px; right: 16px; color: #a5f3fc; }
.m-chip.c2 { top: 62px; right: 34px; color: #e0c88a; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.vis-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vis-feats li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 13px; color: var(--ink2); }
.vis-feats b { font: 700 13px 'JetBrains Mono', monospace; padding: 6px 8px; border-radius: 8px; color: #1c1608; background: var(--grad); flex: none; }

/* ---------------- success: zoom into the monitor */
body.zooming .form-side { opacity: 0; transform: translateX(-40px); transition: opacity .5s, transform .6s; }
[dir="rtl"] body.zooming .form-side { transform: translateX(40px); }
body.zooming .vis-head, body.zooming .vis-feats { opacity: 0; transition: opacity .4s; }
body.zooming .monitor { transform: translate(var(--zx, 0), var(--zy, 0)) scale(var(--zs, 2.4)); transition: transform 1.2s cubic-bezier(.7, 0, .2, 1); z-index: 5; }
.go-zoom { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(4, 17, 28, .2), #0a0803 70%); opacity: 1; transition: opacity .6s; }
.go-zoom.pending { opacity: 0; pointer-events: none; }
.go-zoom .gz-ring { position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; border: 2px solid rgba(217, 196, 142, .4); animation: ringout 1.6s ease-out infinite; }
.go-zoom.pending .gz-ring { animation: none; }
@keyframes ringout { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.gz-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #e2e8f0; }
.gz-box .mark { width: 64px; height: 64px; border-radius: 18px; animation: pop .5s both; }
.gz-box .mark svg { width: 40px; height: 40px; }
.gz-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.gz-title b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.gz-msg { font: 500 13px 'JetBrains Mono', monospace; color: #94a3b8; min-height: 20px; }
.gz-bar { width: 220px; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .2); overflow: hidden; }
.gz-bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: load 1.4s ease forwards; }
.go-zoom.pending .gz-bar i { animation: none; }
@keyframes load { to { width: 100%; } }

/* ---------------- responsive */
@media (max-width: 1100px) { .auth-shell { grid-template-columns: minmax(380px, 500px) 1fr; } .vis-feats { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; padding: 16px; }
  .visual-side { display: none; }
  .auth-card { padding: 26px 20px; }
}
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } .card-head h1 { font-size: 25px; } #backSite span { display: none; } }
@media (prefers-reduced-motion: reduce) { .gk-bg i, .m-chip, .caret { animation: none; } .monitor { transform: none; } }

/* the cinematic zoom must never add a scroll bar */
html:has(body.zooming), body.zooming { overflow: hidden !important; }
body.zooming .auth-shell { overflow: hidden; }

/* scroll bars and selection in the brand gold */
:root { accent-color: #bda062; }
::selection { background: rgba(189, 160, 98, .4); color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(189, 160, 98, .5); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; min-height: 36px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(189, 160, 98, .8); }
::-webkit-scrollbar-thumb:active { background-color: #bda062; }

/* LardhGIS logo: the pattern mark replaces the old pin glyph everywhere */
.mark { background: url(/img/logo.svg) center / cover no-repeat !important; border: 0 !important; box-shadow: 0 6px 18px -8px rgba(0,0,0,.55) !important; }
.mark svg { display: none !important; }

/* ---------------- light theme: the live monitor and the hand-over screen */
:root[data-theme="light"] .gk-bg .grid { background-image: linear-gradient(rgba(28, 22, 12, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 22, 12, .05) 1px, transparent 1px); }
:root[data-theme="light"] .monitor { background: #fffaf0; border-color: rgba(120, 95, 40, .22); box-shadow: 0 30px 70px -28px rgba(80, 60, 20, .35), 0 0 0 1px rgba(189, 160, 98, .18); }
:root[data-theme="light"] .m-bar { background: #f4ebd4; border-bottom-color: rgba(120, 95, 40, .18); color: #6b5a34; }
:root[data-theme="light"] .m-bar b { color: #7a5a12; }
:root[data-theme="light"] .m-bar em { color: #8a6a1a; }
:root[data-theme="light"] .m-term { background: rgba(255, 251, 240, .93); border-color: rgba(150, 120, 50, .35); color: #1f2937; box-shadow: 0 10px 28px -14px rgba(80, 60, 20, .35); }
:root[data-theme="light"] .m-term .ln.dim { color: #7a6c4a; }
:root[data-theme="light"] .m-term .k { color: #8a6a1a; }
:root[data-theme="light"] .m-term .k::before { color: #a89870; }
:root[data-theme="light"] .m-term .v { color: #111827; }
:root[data-theme="light"] .m-term .v.typing { color: #b45309; }
:root[data-theme="light"] .m-term .status .v { color: #6b5a34; }
:root[data-theme="light"] .m-term .status .v.ok { color: #047857; }
:root[data-theme="light"] .m-term .status .v.err { color: #b91c1c; }
:root[data-theme="light"] .m-term .status .v.busy { color: #b45309; }
:root[data-theme="light"] .caret { background: #8a6a1a; }
:root[data-theme="light"] .m-chip { background: rgba(255, 251, 240, .94); border-color: rgba(150, 120, 50, .3); color: #2a2110; box-shadow: 0 8px 22px -12px rgba(80, 60, 20, .35); }
:root[data-theme="light"] .m-chip.c1 { color: #0e7490; }
:root[data-theme="light"] .m-chip.c2 { color: #8a6a1a; }
:root[data-theme="light"] .vis-head .badge { color: #7a5a12; background: rgba(189, 160, 98, .18); border-color: rgba(150, 120, 50, .4); }
:root[data-theme="light"] .go-zoom { background: radial-gradient(circle at center, rgba(255, 250, 235, .35), #f8f3e6 70%); }
:root[data-theme="light"] .go-zoom .gz-ring { border-color: rgba(150, 120, 50, .4); }
:root[data-theme="light"] .gz-box { color: #1f2937; }
:root[data-theme="light"] .gz-msg { color: #6b5a34; }
:root[data-theme="light"] .gz-bar { background: rgba(120, 95, 40, .16); }
/* light theme: the gold of links and of the gradient words is deeper, so it reads on cream */
:root[data-theme="light"] { --cyan: #8a6a1a; --green: #047857; }
:root[data-theme="light"] :is(.mini-brand b, .vis-head h2 em, .gz-title b) { background: linear-gradient(135deg, #a8791a, #7a5a12); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .auth-body a:not(.btn) { color: #7a5a12; }

/* sign-up: Personal / Business */
.acct-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.acct-type label { position: relative; cursor: pointer; }
.acct-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.acct-type span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s, box-shadow .2s; }
.acct-type b { font-size: 14px; }
.acct-type small { font-size: 12px; opacity: .7; }
.acct-type input:checked + span { border-color: #bda062; background: rgba(189, 160, 98, .14); box-shadow: 0 0 0 3px rgba(189, 160, 98, .18); }
.acct-type input:focus-visible + span { box-shadow: 0 0 0 3px rgba(189, 160, 98, .4); }
html[data-theme="light"] .acct-type span { border-color: rgba(0, 0, 0, .14); background: rgba(0, 0, 0, .02); }
.mark.ardh { background: url(/img/ardh-logo.svg) center / cover no-repeat !important; }
.mark.ardh svg { display: none !important; }

/* LardhGIS login: the terminal sits small in the corner so the scene stays visible */
.m-term { width: min(300px, calc(100% - 32px)); padding: 9px 12px; font-size: 11.5px; opacity: .94; }

/* technology switch under the form, and the logos of LardhTraffic / LardhPedestrian (placeholder files in /img) */
.app-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted, #94a3b8); }
.app-switch a { padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .28); color: inherit; text-decoration: none; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.app-switch a:hover { border-color: #bda062; color: #e0c88a; }
.app-switch a.on { background: rgba(189, 160, 98, .16); border-color: #bda062; color: #e0c88a; }
html[data-theme="light"] .app-switch a:hover, html[data-theme="light"] .app-switch a.on { color: #7a5a12; }
body.app-traffic .mark { background-image: url(/img/traffic-logo.svg) !important; }
body.app-pedestrian .mark { background-image: url(/img/pedestrian-logo.svg) !important; }
body.app-traffic .m-chip.c1, body.app-pedestrian .m-chip.c1 { color: #e0c88a; }
body.app-traffic .m-chip.c1 svg, body.app-pedestrian .m-chip.c1 svg { display: none; }

/* sign-up: which app */
.app-pick{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.app-pick label{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid rgba(148,163,184,.35);border-radius:10px;cursor:pointer;font-size:13px}
.app-pick input{accent-color:#d9c48e}
