/* Login: one centred card. Dark brand side (left) and the form (right). */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lg { font: 400 15px/1.5 'Jost', system-ui, sans-serif; color: #14171d;
  background: radial-gradient(900px 600px at 10% 0%, #e6eefb 0, rgba(230, 238, 251, 0) 60%), radial-gradient(800px 600px at 100% 100%, #efe9df 0, rgba(239, 233, 223, 0) 60%), #f4f2ed; }
h1, h2, b, strong { font-family: 'Jost', sans-serif; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.lg-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.lg-shell { width: min(1080px, 100%); min-height: 640px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 10px; border-radius: 34px;
  background: #fff; border: 1px solid #ebe7df; box-shadow: 0 2px 4px rgba(20, 20, 20, .03), 0 40px 80px -50px rgba(20, 30, 60, .45); animation: lg-rise .6s cubic-bezier(.2, .8, .2, 1) both; }

/* brand side */
.lg-brand { position: relative; overflow: hidden; padding: 30px 32px; border-radius: 26px; background: #14171d; color: #f3f1ec; display: flex; flex-direction: column; gap: 22px; }
.lg-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.lg-glow.a { width: 440px; height: 440px; right: -150px; top: -170px; background: radial-gradient(circle, rgba(22, 146, 232, .5) 0, rgba(22, 146, 232, 0) 65%); animation: lg-float 9s ease-in-out infinite; }
.lg-glow.b { width: 400px; height: 400px; left: -170px; bottom: -190px; background: radial-gradient(circle, rgba(125, 141, 255, .32) 0, rgba(125, 141, 255, 0) 65%); animation: lg-float 11s ease-in-out infinite reverse; }
.lg-logo { position: relative; display: flex; align-items: center; gap: 12px; }
.lg-logo > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #1692e8, #7d8dff); color: #fff;
  font: 700 21px sans-serif; box-shadow: 0 12px 24px -10px rgba(22, 146, 232, .9); }
.lg-logo strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lg-logo small { color: #9c978e; font-size: 12.5px; }
.lg-hero { position: relative; margin-top: 18px; }
.lg-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9c978e; }
.lg-hero h1 { margin: 0; font-size: 42px; line-height: 1.04; font-weight: 700; letter-spacing: -.045em; color: #fff; }
.lg-hero h1 em { font-style: normal; background: linear-gradient(90deg, #4fb2ff, #9aa7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-copy { margin: 12px 0 0; max-width: 380px; font-size: 15px; color: #bdb8af; }

/* floating preview of the portal */
.lg-preview { position: relative; flex: 1; min-height: 190px; margin-top: 4px; }
.lg-mini { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7); }
.lg-mini small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9c978e; }
.lg-mini b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.lg-mini.dark { left: 0; bottom: 18px; width: 58%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: lg-rise .8s cubic-bezier(.2, .8, .2, 1) .25s both; }
.lg-mini.light { background: #fff; color: #14171d; }
.lg-mini.light:not(.sm) { right: 0; top: 0; width: 50%; transform: rotate(2deg); animation: lg-rise-r .8s cubic-bezier(.2, .8, .2, 1) .4s both; }
.lg-mini.sm { right: 6%; bottom: 0; width: 44%; animation: lg-rise .8s cubic-bezier(.2, .8, .2, 1) .55s both; }
.lg-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 54px; margin-top: 6px; }
.lg-bars i { display: block; border-radius: 6px; background: #2b3240; transform-origin: bottom; animation: lg-grow-y .9s cubic-bezier(.2, .8, .2, 1) .6s both; }
.lg-bars i.now { background: linear-gradient(180deg, #7d8dff, #1692e8); }
.lg-pill { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #e8f6ee; color: #17803d; }
.lg-pill.blue { background: #eaf3ff; color: #0b3d8c; }
.lg-people { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.lg-stack { display: flex; flex: none; }
.lg-stack img { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #14171d; }
.lg-stack img + img { margin-left: -11px; }
.lg-people b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.lg-people small { color: #9c978e; font-size: 12px; }

/* form side */
.lg-panel { display: grid; place-items: center; padding: 40px 48px; }
.lg-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; animation: lg-rise .6s cubic-bezier(.2, .8, .2, 1) .1s both; }
.lg-form h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
.lg-sub { margin: -10px 0 8px; color: #8a857c; }
.lg-alert { padding: 11px 14px; border-radius: 14px; font-size: 14px; }
.lg-alert.ok { background: #eaf3ff; color: #0b3d8c; }
.lg-alert.err { background: #fdecea; color: #b42318; animation: lg-shake .4s; }
.lg-field { display: flex; flex-direction: column; gap: 7px; }
.lg-field > span:first-child { font-size: 13px; font-weight: 500; color: #4a4741; }
.lg-input { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 16px; border-radius: 16px; background: #f8f7f4; border: 1px solid #e9e4db; color: #8a857c;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-input:focus-within { background: #fff; border-color: #1692e8; box-shadow: 0 0 0 4px rgba(22, 146, 232, .14); color: #1692e8; }
.lg-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 400 15.5px 'Jost', sans-serif; color: #14171d; }
.lg-input input::placeholder { color: #b3aea5; }
/* browser autofill: keep our colours instead of the blue box */
.lg-input input:-webkit-autofill, .lg-input input:-webkit-autofill:hover, .lg-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #14171d; -webkit-box-shadow: 0 0 0 1000px #f8f7f4 inset; caret-color: #14171d; transition: background-color 9999s; }
.lg-input:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; }
.lg-eye { width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: #8a857c; display: grid; place-items: center; cursor: pointer; }
.lg-eye:hover, .lg-eye.on { background: #efece6; color: #14171d; }
.lg-btn { height: 56px; margin-top: 6px; border: 0; border-radius: 16px; background: #14171d; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px sans-serif; cursor: pointer; position: relative; overflow: hidden; transition: transform .18s; box-shadow: 0 16px 30px -18px rgba(10, 15, 30, .8); }
.lg-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #1692e8, #7d8dff); opacity: 0; transition: opacity .25s; }
.lg-btn:hover::before { opacity: 1; }
.lg-btn > * { position: relative; }
.lg-btn svg { transition: transform .2s; }
.lg-btn:hover svg { transform: translateX(4px); }
.lg-btn:active { transform: scale(.98); }
.lg-btn.busy { pointer-events: none; }
.lg-btn.busy span::after { content: "…"; }
.lg-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: #8a857c; }
.lg-foot svg { width: 15px; height: 15px; color: #1692e8; }

@keyframes lg-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lg-rise-r { from { opacity: 0; transform: translateY(16px) rotate(2deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes lg-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lg-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 24px); } }
@keyframes lg-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* tablets */
@media (max-width: 980px) {
  .lg-shell { grid-template-columns: 1fr 1fr; min-height: 580px; }
  .lg-hero h1 { font-size: 34px; }
  .lg-panel { padding: 32px 28px; }
}
/* phones: brand on top, form below */
@media (max-width: 760px) {
  .lg-wrap { padding: 10px; place-items: start center; }
  .lg-shell { grid-template-columns: 1fr; min-height: 0; padding: 8px; border-radius: 28px; }
  .lg-brand { padding: 22px 20px 20px; gap: 14px; border-radius: 22px; }
  .lg-hero { margin-top: 6px; }
  .lg-hero h1 { font-size: 30px; }
  .lg-copy { font-size: 14px; }
  .lg-preview { display: none; }
  .lg-people small { display: none; }
  .lg-stack img { width: 28px; height: 28px; }
  .lg-panel { padding: 24px 14px 22px; }
  .lg-form h2 { font-size: 26px; }
}
.lg-preview { min-height: 250px; }
.lg-mini.light:not(.sm) { top: 6px; right: 0; width: 48%; }
.lg-mini.sm { bottom: 0; right: 8%; width: 42%; z-index: 2; }
.lg-mini.dark { bottom: 40px; width: 60%; }
.lg-hero h1, .lg-form h2 { letter-spacing: -.03em; }

/* original X Developers logo */
.logo-mark.is-img, .m-logo .is-img, .lg-logo .is-img { background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible; display: grid; place-items: center; }
.xmark { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(80, 40, 160, .25)); }
.lg-logo .is-img { width: 46px; height: 46px; }

/* email / WhatsApp switch */
.lg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #f1eee8; }
.lg-tabs a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 11px; font-size: 14px; font-weight: 500; color: #6f6a62; text-decoration: none; transition: background .2s, color .2s; }
.lg-tabs a svg { width: 16px; height: 16px; }
.lg-tabs a.on { background: #fff; color: #14171d; box-shadow: 0 4px 12px -6px rgba(20, 20, 20, .25); }
.lg-tabs a.on svg { color: #22b35e; }
.lg-cc { font: 600 15px 'Jost', sans-serif; color: #14171d; padding-right: 8px; border-right: 1px solid #e6e1d8; }
.lg-hint { margin: -4px 0 0; font-size: 13px; color: #8a857c; }
.lg-hint b { color: #14171d; font-weight: 600; }
.lg-link { align-self: center; border: 0; background: none; font: 500 13.5px 'Jost', sans-serif; color: #0f6ad6; cursor: pointer; padding: 4px; }
.lg-otp { letter-spacing: .4em; font-size: 18px !important; font-weight: 600 !important; }
body.lg { font-family: 'DM Sans', system-ui, sans-serif; }
.lg-input input, .lg-link, .lg-cc { font-family: 'DM Sans', system-ui, sans-serif; }
h1, h2, .lg-logo strong, .lg-mini b, .lg-btn { font-family: 'Jost', system-ui, sans-serif; }

/* crisp text: no fake bold/italic, steady smoothing */
html { font-synthesis: none; -webkit-text-size-adjust: 100%; }

/* body text: Inter (made for screens), headings stay Jost */
:root, .admin { --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body, body.admin, body.m-app, body.lg, body.auth-page, body.cportal, body.doc-page { font-family: var(--font); }
body.lg, .lg-input input, .lg-link, .lg-cc { font-family: 'Inter', system-ui, sans-serif; }

/* ===== body text: Google Sans Flex (headings stay Jost) ===== */
:root, .admin { --font: 'Google Sans Flex', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body.lg, .lg-input input, .lg-link, .lg-cc { font-family: var(--font); }
body { font-variation-settings: "ROND" 0; }
