/* =====================================================================
   JawaHR Website Theme  ·  login + contact
   Full-screen navy splash from the desk workspace splash pages
   (public/js/jawa_workspaces.js), for the public website pages.
   ---------------------------------------------------------------------
   Loaded only by jawaerp/www/login.html and jawaerp/www/contact.html,
   which set body_class = "jw-web". Other website pages are untouched.
   ===================================================================== */

/* ---------- 1. Tokens ---------------------------------------------- */
body.jw-web {
  --jw-navy: #183058;
  --jw-navy-deep: #0d1b36;
  --jw-navy-500: #2a58a8;
  --jw-navy-600: #1f4a8f;
  --jw-orange: #c87818;
  --jw-orange-hi: #f0a83c;
  --jw-on-dark: #ffffff;
  --jw-on-dark-2: rgba(255, 255, 255, .74);
  --jw-on-dark-3: rgba(255, 255, 255, .5);
  --jw-glass: rgba(255, 255, 255, .06);
  --jw-glass-line: rgba(255, 255, 255, .14);
  --jw-field: rgba(255, 255, 255, .07);
  --jw-field-line: rgba(255, 255, 255, .16);
  --jw-bad: #f87171;
  --jw-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  margin: 0;
  min-height: 100vh;
  background: var(--jw-navy-deep);
  color: var(--jw-on-dark);
  font-family: var(--jw-font);
  overflow-x: hidden;
}
body.jw-web *, body.jw-web *::before, body.jw-web *::after { box-sizing: border-box; }
.jw-screen a { color: inherit; }
.jw-screen a:hover { text-decoration: none; }

/* ---------- 2. Animations ------------------------------------------ */
@keyframes jwWebFadeUp { from { opacity: .001; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes jwWebBeam { from { background-position: -100% 0; } to { background-position: 300% 0; } }
@keyframes jwWebShimmer { to { background-position: 300% 0; } }
@keyframes jwWebPulse { 70% { box-shadow: 0 0 0 10px rgba(92, 242, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 242, 154, 0); } }
@keyframes jwWebRing { 0% { box-shadow: 0 0 0 0 rgba(240, 168, 60, .55); } 70% { box-shadow: 0 0 0 10px rgba(240, 168, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 168, 60, 0); } }
@keyframes jwWebFloat { 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes jwWebDrift1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes jwWebDrift2 { to { transform: translate(-14%, 18%) scale(1.2); } }
@keyframes jwWebDrift3 { to { transform: translate(-16%, -10%) scale(1.1); } }
@keyframes jwWebWiggle { 8%, 41% { transform: translateX(-10px); } 25%, 58% { transform: translateX(10px); } 75% { transform: translateX(-5px); } 92% { transform: translateX(5px); } 0%, 100% { transform: none; } }
@property --jw-web-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes jwWebTurn { to { --jw-web-a: 360deg; } }

/* ---------- 3. Full-screen splash ---------------------------------- */
/* fills the window below the site navbar (68px, see jawa_navbar_v1.css), so the whole page is in view */
.jw-screen { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); display: flex; flex-direction: column; background: var(--jw-navy-deep); color: var(--jw-on-dark); }
.jw-screen > .jw-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.jw-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.jw-bg .aurora { position: absolute; inset: -20%; filter: blur(60px); opacity: .75; }
.jw-bg .aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.jw-bg .aurora i:nth-child(1) { width: 55%; height: 55%; left: -10%; top: -10%; background: radial-gradient(circle, var(--jw-navy-500), transparent 60%); animation: jwWebDrift1 18s ease-in-out infinite alternate; }
.jw-bg .aurora i:nth-child(2) { width: 45%; height: 45%; right: -8%; top: 10%; background: radial-gradient(circle, rgba(240, 168, 60, .55), transparent 60%); animation: jwWebDrift2 22s ease-in-out infinite alternate; }
.jw-bg .aurora i:nth-child(3) { width: 50%; height: 50%; left: 30%; bottom: -20%; background: radial-gradient(circle, var(--jw-navy-600), transparent 60%); animation: jwWebDrift3 26s ease-in-out infinite alternate; }
.jw-bg .gridlines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 40% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 40% 30%, #000 20%, transparent 75%); }
.jw-bg .chev { position: absolute; right: -6%; bottom: -18%; width: 52%; max-width: 520px; height: auto; opacity: .06; animation: jwWebFloat 9s ease-in-out infinite; }
.jw-beam { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--jw-orange-hi), #fff, var(--jw-orange-hi), transparent); background-size: 50% 100%; animation: jwWebBeam 3.2s linear infinite; opacity: .9; }

/* one centred column for content and footer */
.jw-foot, .jw-stage { width: 100%; max-width: 1100px; margin-inline: auto; }


.jw-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 40px 24px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.jw-foot b { color: rgba(255, 255, 255, .8); font-weight: 600; }

/* ---------- 4. Shared type + controls ------------------------------ */
.jw-web .jw-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--jw-orange-hi); }
.jw-web .jw-greet { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--jw-orange-hi); display: flex; align-items: center; gap: 10px; }
.jw-web .jw-greet::before { content: ""; width: 22px; height: 1px; background: var(--jw-orange-hi); }
.jw-web .jw-glow { background: linear-gradient(90deg, #ffd18a, #f0a83c, #ffe2b0, #f0a83c); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: jwWebShimmer 6s linear 1.4s infinite; }
.jw-web .jw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5cf29a; box-shadow: 0 0 0 0 rgba(92, 242, 154, .6); animation: jwWebPulse 2s infinite; vertical-align: middle; margin-right: 8px; }
.jw-web .jw-link { color: var(--jw-orange-hi) !important; font-weight: 600; text-decoration: none !important; }
.jw-web .jw-link:hover { color: #ffd18a !important; }

/* amber button: also covers Frappe's .btn / .btn-primary, which login.js writes status text into */
.jw-web .jw-cta, .jw-web .jw-card .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px; padding: 0 22px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--jw-orange-hi), var(--jw-orange)) !important;
  color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0;
  box-shadow: 0 12px 28px -12px rgba(200, 120, 24, .9); position: relative; overflow: hidden;
  cursor: pointer; text-decoration: none !important; transition: transform .2s, box-shadow .2s;
}
.jw-web .jw-cta::after, .jw-web .jw-card .btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.jw-web .jw-cta:hover, .jw-web .jw-card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(200, 120, 24, 1); }
.jw-web .jw-cta:hover::after, .jw-web .jw-card .btn-primary:hover::after { transform: translateX(120%); }
.jw-web .jw-cta:focus-visible, .jw-web .jw-card .btn-primary:focus-visible { outline: 3px solid rgba(240, 168, 60, .5); outline-offset: 2px; }
.jw-web .jw-cta .go { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.jw-web .jw-cta:hover .go { transform: translateX(4px); }
.jw-web .jw-cta.auto { width: auto; height: 46px; font-size: 14px; }
.jw-web .jw-ghost { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18) !important; background: rgba(255, 255, 255, .05) !important; color: var(--jw-on-dark) !important; font-weight: 600; box-shadow: none !important; }
.jw-web .jw-ghost:hover { border-color: rgba(240, 168, 60, .6) !important; background: rgba(240, 168, 60, .08) !important; }

/* glass panel with amber edge */
.jw-web .jw-glass { position: relative; border-radius: 18px; background: var(--jw-glass); border: 1px solid var(--jw-glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.jw-web .jw-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(240, 168, 60, .7), transparent 40%, transparent 60%, rgba(255, 255, 255, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* fields on glass */
.jw-web .jw-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.jw-web .jw-field label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--jw-on-dark-2); }
.jw-web .jw-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jw-web .jw-label-row a { font-size: 12.5px; }
.jw-web .jw-input { position: relative; }
.jw-web .jw-input input, .jw-web .jw-input textarea, .jw-web .jw-card input.form-control {
  width: 100%; height: 50px; margin: 0; padding: 0 14px 0 46px;
  font: inherit; font-size: 14.5px; color: var(--jw-on-dark) !important;
  background: rgba(8, 18, 37, .35) !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 12px;
  box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.jw-web .jw-input textarea { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.jw-web .jw-input input::placeholder, .jw-web .jw-input textarea::placeholder, .jw-web .jw-card input.form-control::placeholder { color: rgba(255, 255, 255, .38); }
.jw-web .jw-input input:focus, .jw-web .jw-input textarea:focus, .jw-web .jw-card input.form-control:focus { outline: none; background: rgba(8, 18, 37, .5) !important; border-color: var(--jw-orange-hi) !important; box-shadow: 0 0 0 3px rgba(240, 168, 60, .25); }
.jw-web .jw-input .field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--jw-on-dark-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.jw-web .jw-input input:focus ~ .field-icon { stroke: var(--jw-orange-hi); }
/* browser autofill (saved email / password): keep the field dark instead of the browser's white.
   A large inset shadow covers the autofill background; it must come after the :focus rule,
   and the focus state repeats it together with the amber ring. */
.jw-web .jw-input input:-webkit-autofill,
.jw-web .jw-input input:-webkit-autofill:hover,
.jw-web .jw-card input.form-control:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 1000px #14254a inset; transition: background-color 600000s 0s, color 600000s 0s; }
.jw-web .jw-input input:-webkit-autofill:focus,
.jw-web .jw-card input.form-control:-webkit-autofill:focus { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #14254a inset, 0 0 0 3px rgba(240, 168, 60, .25); }
.jw-web .jw-input input:autofill { box-shadow: 0 0 0 1000px #14254a inset; color: #fff; filter: none; }
.jw-web .jw-input input:autofill:focus { box-shadow: 0 0 0 1000px #14254a inset, 0 0 0 3px rgba(240, 168, 60, .25); }
.jw-web .jw-input .toggle-password { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--jw-on-dark-2) !important; cursor: pointer; user-select: none; }
.jw-web .jw-input .toggle-password:hover { color: var(--jw-orange-hi) !important; }
/* login.js marks a failed login with .invalid on .page-card-body */
.jw-web .page-card-body.invalid .jw-input input { border-color: var(--jw-bad) !important; }

/* ---------- 5. Login ----------------------------------------------- */
.jw-login .jw-stage { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; padding: 30px 40px 36px; }
.jw-hello { display: flex; flex-direction: column; gap: 22px; max-width: 50ch; }
.jw-hello > * { animation: jwWebFadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.jw-hello > :nth-child(2) { animation-delay: .12s; } .jw-hello > :nth-child(3) { animation-delay: .24s; } .jw-hello > :nth-child(4) { animation-delay: .36s; }
.jw-hello h1 { margin: 0; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; color: var(--jw-on-dark); text-wrap: balance; }
.jw-hello .tag { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--jw-on-dark-2); }
.jw-clock { display: flex; gap: 22px 34px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.jw-clock b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--jw-on-dark); }
.jw-clock small { display: block; margin-top: 5px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--jw-on-dark-3); }

/* the card column: Frappe's sections (#login, #forgot, #signup) all live in here */
.jw-card-wrap { position: relative; width: 100%; animation: jwWebFadeUp 1s .3s both; }
.jw-card-wrap::before { content: ""; position: absolute; inset: 8% -6% -6% 10%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(240, 168, 60, .30), rgba(42, 88, 168, .25) 55%, transparent); filter: blur(30px); pointer-events: none; }
.jw-login .for-forgot, .jw-login .for-signup, .jw-login .for-email-login { display: none; }
.jw-web .jw-card {
  width: 100%; margin: 0; padding: 36px 38px 28px; border-radius: 22px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .08));
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .3s ease;
}
.jw-web .jw-card::before { background: conic-gradient(from var(--jw-web-a), rgba(240, 168, 60, 0) 0deg, rgba(240, 168, 60, .95) 70deg, rgba(255, 255, 255, .55) 110deg, rgba(240, 168, 60, 0) 170deg, rgba(255, 255, 255, .12) 260deg, rgba(240, 168, 60, 0) 360deg); animation: jwWebTurn 7s linear infinite; }
.jw-web .jw-card.invalid-login { animation: jwWebWiggle .5s linear; }
.jw-web .jw-card form { display: flex; flex-direction: column; gap: 18px; margin: 0; max-width: none; }
.jw-web .jw-card .page-card-body { display: flex; flex-direction: column; gap: 18px; padding: 0; }
.jw-web .jw-card .page-card-actions { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.jw-web .jw-card input.form-control { padding: 0 14px; }
.jw-web .jw-card .form-group { margin: 0 0 12px; }
.jw-web .jw-card-head { display: flex; align-items: center; gap: 14px; }
.jw-web .jw-badge { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--jw-orange-hi), var(--jw-orange)); box-shadow: 0 14px 30px -12px rgba(240, 168, 60, .8); animation: jwWebRing 2.4s infinite; }
.jw-web .jw-badge img { width: 30px; height: auto; }
.jw-web .jw-badge svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jw-web .jw-card h2 { margin: 4px 0 0; font-size: 25px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--jw-on-dark); }
.jw-web .jw-card .lede { margin: 0; font-size: 13.5px; color: var(--jw-on-dark-2); line-height: 1.55; }
.jw-web .jw-card-end { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--jw-on-dark-3); }
.jw-web .jw-secure { display: inline-flex; align-items: center; gap: 7px; }
.jw-web .jw-secure svg { width: 14px; height: 14px; fill: none; stroke: #5cf29a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jw-web .jw-or { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--jw-on-dark-3); }
.jw-web .jw-or::before, .jw-web .jw-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.jw-web .jw-social { display: grid; gap: 10px; }
.jw-web .jw-social img { width: 18px; height: 18px; }

/* two-factor step: login.js empties .login-content and adds #twofactor_div */
.jw-web #twofactor_div .form-verify { display: flex; flex-direction: column; gap: 14px; }
.jw-web #twofactor_div .page-card-head { margin: 0; text-align: left; }
.jw-web #twofactor_div .indicator { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--jw-orange-hi); }
.jw-web #twofactor_div .indicator::before { display: none; }
.jw-web #twofactor_div .text-muted { color: var(--jw-on-dark-2) !important; font-size: 13.5px; line-height: 1.55; padding-bottom: 0 !important; }
.jw-web #twofactor_div #login_token { padding: 0 14px; text-align: center; letter-spacing: .4em; font-size: 20px; font-weight: 700; }
.jw-web #twofactor_div .btn-primary { margin-top: 4px !important; }

/* sign-up disabled message (#signup) */
.jw-web .jw-card .indicator { color: var(--jw-orange-hi); font-weight: 600; }
.jw-web .jw-card .sign-up-message { color: var(--jw-on-dark-2); font-size: 13.5px; }

/* the splash Frappe shows after a successful login */
body.jw-web .centered.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--jw-navy-deep); }
body.jw-web .centered.splash img { width: 90px !important; max-width: none !important; height: auto; animation: jwWebFadeUp .6s both; }

/* ---------- 6. Contact --------------------------------------------- */
.jw-contact .jw-stage { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 30px; padding: 40px 40px 36px; }
.jw-contact-head { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.jw-contact-head > * { animation: jwWebFadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.jw-contact-head > :nth-child(2) { animation-delay: .12s; } .jw-contact-head > :nth-child(3) { animation-delay: .24s; }
.jw-contact-head h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em; color: var(--jw-on-dark); text-wrap: balance; }
.jw-contact-head .intro { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--jw-on-dark-2); }
.jw-contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.jw-msg { padding: 26px; display: flex; flex-direction: column; gap: 16px; animation: jwWebFadeUp 1s .3s both; }
.jw-group { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jw-on-dark); }
.jw-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), transparent); }
.jw-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.jw-chips button { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--jw-field-line); background: var(--jw-field); color: var(--jw-on-dark-2); cursor: pointer; transition: all .2s; }
.jw-chips button:hover { border-color: rgba(240, 168, 60, .6); }
.jw-chips button[aria-pressed="true"] { background: rgba(240, 168, 60, .16); border-color: var(--jw-orange-hi); color: #ffd18a; }
.jw-chips button:focus-visible { outline: 2px solid var(--jw-orange-hi); outline-offset: 2px; }
.jw-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.jw-send { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jw-send small { color: var(--jw-on-dark-3); font-size: 12.5px; }
.jw-web #contact-alert { margin: 0; border-radius: 10px; }
.jw-msg-form { display: flex; flex-direction: column; gap: 16px; }
.jw-msg-form[hidden], .jw-msg-done[hidden] { display: none; }
.jw-msg-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 10px 22px; animation: jwWebFadeUp .6s cubic-bezier(.2, .7, .2, 1) both; }
.jw-msg-done .ic { width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; background: rgba(240, 168, 60, .14); border: 1px solid rgba(240, 168, 60, .45); display: grid; place-items: center; }
.jw-msg-done .ic svg { width: 28px; height: 28px; fill: none; stroke: var(--jw-orange-hi); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jw-msg-done h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--jw-on-dark); outline: none; }
.jw-msg-done p { margin: 0; font-size: 14.5px; color: var(--jw-on-dark-2); }
.jw-msg-again { margin-top: 12px; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--jw-field-line); background: var(--jw-field); color: var(--jw-on-dark-2); cursor: pointer; transition: border-color .2s, color .2s; }
.jw-msg-again:hover { border-color: rgba(240, 168, 60, .6); color: var(--jw-on-dark); }
.jw-msg-again:focus-visible { outline: 2px solid var(--jw-orange-hi); outline-offset: 2px; }
.jw-side { display: flex; flex-direction: column; gap: 10px; }
.jw-side > * { animation: jwWebFadeUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.jw-side > :nth-child(2) { animation-delay: .4s; } .jw-side > :nth-child(3) { animation-delay: .48s; } .jw-side > :nth-child(4) { animation-delay: .56s; } .jw-side > :nth-child(5) { animation-delay: .64s; }
.jw-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--jw-glass); border: 1px solid var(--jw-glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--jw-on-dark) !important; text-decoration: none !important; position: relative; overflow: hidden; transition: border-color .2s, transform .2s, background .2s; }
.jw-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--jw-orange-hi), var(--jw-orange)); transform: scaleY(0); transform-origin: bottom; transition: transform .25s; }
a.jw-tile:hover { border-color: rgba(240, 168, 60, .5); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
a.jw-tile:hover::before { transform: scaleY(1); }
.jw-tile .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(240, 168, 60, .14); display: grid; place-items: center; }
.jw-tile .ic svg { width: 20px; height: 20px; fill: none; stroke: var(--jw-orange-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jw-tile .tx { min-width: 0; }
.jw-tile b { display: block; font-size: 14px; font-weight: 600; }
.jw-tile small { display: block; font-size: 12.5px; color: var(--jw-on-dark-2); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.jw-tile small a { color: inherit !important; }
.jw-tile .arrow { margin-left: auto; color: var(--jw-on-dark-3); font-size: 16px; transition: transform .2s, color .2s; }
a.jw-tile:hover .arrow { transform: translateX(3px); color: var(--jw-orange-hi); }

/* Frappe's msgprint dialog keeps its own light look; just give it the brand button */
body.jw-web .modal .btn-primary { background: var(--jw-navy); border-color: var(--jw-navy); }

/* ---------- 7. Tablet & phone -------------------------------------- */
@media (max-width: 900px) {
  .jw-login .jw-stage { grid-template-columns: 1fr; gap: 30px; align-content: center; }
  .jw-card-wrap { max-width: 560px; }
  .jw-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jw-login .jw-stage { padding: 26px 20px; gap: 26px; }
  .jw-hello { gap: 14px; }
  .jw-hello h1 { font-size: 34px; }
  .jw-hello .tag { display: none; }
  .jw-clock { gap: 14px 24px; } .jw-clock b { font-size: 19px; }
  .jw-clock > div:nth-child(3) { display: none; }
  .jw-web .jw-card { padding: 24px 20px 20px; }
  .jw-web .jw-card h2 { font-size: 22px; }
  .jw-card-wrap::before { inset: 10% 0 -4% 0; }
  .jw-web .jw-input input { font-size: 16px; } /* no iOS zoom on focus */
  .jw-contact .jw-stage { padding: 28px 20px 26px; gap: 22px; }
  .jw-contact-head h1 { font-size: 32px; }
  .jw-msg { padding: 20px; }
  .jw-foot { padding: 0 20px 20px; }
  .jw-foot span:last-child { display: none; }
}

/* ---------- 8. Right-to-left (Arabic) ------------------------------ */
[dir="rtl"] .jw-web .jw-input input { padding: 0 46px 0 14px; }
[dir="rtl"] .jw-web .jw-input .field-icon { left: auto; right: 16px; }
[dir="rtl"] .jw-web .jw-input .toggle-password { right: auto; left: 14px; }
[dir="rtl"] .jw-web .jw-cta .go, [dir="rtl"] .jw-tile .arrow { transform: scaleX(-1); }
[dir="rtl"] .jw-bg .chev { right: auto; left: -6%; transform: scaleX(-1); }

/* ---------- 9. Motion preferences ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.jw-web *, body.jw-web *::before, body.jw-web *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
