/* Expera NetExplorer: shared styles for the sign-in page and the account pages. */
:root {
  --bg-dark: #1c2543;
  --bg-light: #2b3967;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --text: #1f2937;
  --text-light: #ffffff;
  --text-muted: #4b5563;
  --text-light-muted: #b7c0dc;
  --line: #e1e6f1;
  --line-dark: #3d4b7e;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.55; }

.site-header {
  display: flex; align-items: center; gap: 12px; height: var(--header-h);
  padding: 0 clamp(20px, 3vw, 44px); background: var(--hdr-bg); color: var(--hdr-fg);
  border-bottom: 1px solid var(--hdr-line);
}
.site-header img { display: block; height: calc(var(--header-h) - 20px); width: auto; max-width: 300px; }
.site-header .name { font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }

.page { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; min-height: calc(100vh - var(--header-h)); }
.signin-col { background: var(--left-bg); border-right: var(--left-edge); }

/* ---------- Left panel, chip and component colors ---------- */
:root {
  --header-h: 48px;
  --hdr-bg: #1c2543; --hdr-fg: #ffffff; --hdr-muted: #b7c0dc; --hdr-line: #1c2543;
  --hdr-divider: rgba(255, 255, 255, .28); --hdr-pill: #5a6aa0; --hdr-hover: #2b3967;
  --hdr-product: #ffffff; --hdr-beta: #03fff6;
  --left-bg: #ffffff;       --left-edge: 1px solid var(--line);
  --left-text: #1c2543;     --left-muted: #5b6478;
  --input-bg: #ffffff;      --input-border: #cfd6e6;   --input-text: #1f2937;
  --btn-bg: #1c2543;        --btn-border: #1c2543;     --btn-text: #ffffff;  --btn-hover: #2b3967;
  --btn2-border: #c3cbe0;   --btn2-text: #1c2543;      --btn2-hover: #f5f7fb;
  --link: #2b3967;          --tag: #2b3967;
  --err-bg: #fdeceb;        --err-text: #a4261d;
  --right-bg: #f5f7fb;      --chip-bg: #ffffff;
}

/* ---------- Left: sign in (stays in view while the right side scrolls) ---------- */
.signin {
  position: sticky; top: 0; height: calc(100vh - var(--header-h)); min-height: min-content; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 40px 44px 32px; color: var(--left-text);
}
.tag { font-size: .75rem; font-weight: 600; color: var(--tag); border: 1px solid var(--tag); border-radius: 3px; padding: 1px 6px; }
.signin h1 { font-size: 2rem; font-weight: 600; line-height: 1.15; margin: 0 0 24px; }
label.field { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 18px; color: var(--left-muted); }
input[type=email], input[type=password] {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--input-text);
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--bg-light); outline-offset: 2px; }
.btn {
  display: block; width: 100%; padding: 12px 16px; font: inherit; font-weight: 600;
  text-align: center; text-decoration: none; border-radius: 6px; cursor: pointer;
}
.btn-primary { color: var(--btn-text); background: var(--btn-bg); border: 1px solid var(--btn-border); }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-secondary { color: var(--btn2-text); background: transparent; border: 1px solid var(--btn2-border); }
.btn-secondary:hover { background: var(--btn2-hover); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--left-muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--input-border); }
.help { margin: 24px 0 0; font-size: .9rem; }
.help a { color: var(--link); }


/* ---------- Messages (all pages) ---------- */
.alert { margin: 0 0 20px; padding: 10px 12px; border-left: 3px solid; border-radius: 0 4px 4px 0; font-size: .95rem; }
.alert-error   { background: var(--err-bg); border-color: var(--err-text); color: var(--err-text); }
.alert-success { background: #e7f6ef; border-color: #1b7a4b; color: #14603a; }
.alert-info    { background: #eef1f8; border-color: var(--bg-light); color: var(--bg-dark); }

/* ---------- Right: light ---------- */
.about { padding: 0 clamp(24px, 4vw, 56px); background: var(--right-bg); }
.inner { max-width: 1240px; margin: 0; }

/* Two "pages", each sized to the screen: heading, description, screenshot */
.hero, .showcase {
  box-sizing: border-box; display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h)); padding: 40px 0 32px;
}
.hero     { --above: 330px; }   /* rough height of the text above the screenshot */
.showcase { --above: 350px; border-top: 1px solid var(--line); }
.hero, .showcase { --shot-h: max(260px, calc(100vh - var(--header-h) - var(--above))); }

.hero h1, .showcase h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.12; color: var(--bg-dark); }
.hero .lead, .showcase > .lead { margin: 0 0 10px; max-width: 74ch; font-size: 1.12rem; color: var(--text); }
.hero p { margin: 0 0 24px; max-width: 74ch; font-size: 1rem; color: var(--text-muted); }

/* Screenshots: scaled down to fit the page, never cropped */
.shot { display: block; margin: 0; max-width: 100%; }
.shot img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: var(--shot-h);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(28, 37, 67, .12);
}
.shot-video, .shot-fallback {
  width: min(100%, calc(var(--shot-h) * 16 / 9)); overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(28, 37, 67, .12);
}
.shot-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.shot-fallback {
  aspect-ratio: 16 / 9; display: grid; place-items: center; border: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(43, 57, 103, .10), transparent 50%),
    linear-gradient(135deg, #e6ecfa, #f5f7fb);
}
.shot-fallback span { color: var(--bg-light); font-size: 1.1rem; font-weight: 600; opacity: .7; }

/* Tabbed showcase (CSS only) */
.showcase > input { position: absolute; opacity: 0; pointer-events: none; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tablist label {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--text-muted); background: var(--chip-bg);
}
.tablist label:hover { border-color: var(--bg-light); color: var(--bg-dark); }
#t1:checked ~ .tablist label[for=t1], #t2:checked ~ .tablist label[for=t2],
#t3:checked ~ .tablist label[for=t3], #t4:checked ~ .tablist label[for=t4] {
  background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-light);
}
#t1:focus-visible ~ .tablist label[for=t1], #t2:focus-visible ~ .tablist label[for=t2],
#t3:focus-visible ~ .tablist label[for=t3], #t4:focus-visible ~ .tablist label[for=t4] {
  outline: 3px solid var(--bg-light); outline-offset: 2px;
}
.panel { display: none; }
#t1:checked ~ .panels #p1, #t2:checked ~ .panels #p2,
#t3:checked ~ .panels #p3, #t4:checked ~ .panels #p4 { display: block; }

.panel .lead { margin: 4px 0 14px; max-width: 64ch; font-size: 1.02rem; color: var(--text-muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 12px; font-size: .9rem; color: var(--text);
  background: var(--chip-bg); border: 1px solid var(--line); border-radius: 999px;
}
.note { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--bg-dark); max-width: 66ch; }
.note h4, .note h5 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; color: var(--bg-dark); }
.note p { margin: 0 0 12px; font-size: .98rem; color: var(--text-muted); }

/* Beta status */
.status { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.status h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 600; color: var(--bg-dark); display: flex; align-items: center; gap: 10px; }
.status p { margin: 0 0 16px; max-width: 62ch; font-size: .98rem; color: var(--text-muted); }

/* ---------- Small screens: sign in first, explanation below ---------- */
@media (max-width: 880px) {
  .page { grid-template-columns: 1fr; }
  .signin { position: static; height: auto; padding: 32px 24px 40px; }
  .site-header { padding: 0 20px; }
  .about { padding: 40px 20px 48px; }
}

/* ================= Account pages (forgot / reset password, my account) ================= */
body.auth-page { background: var(--surface-alt); }

.header-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.header-nav .who { color: var(--hdr-muted); }
.header-nav a { color: var(--hdr-fg); text-decoration: none; padding: 5px 12px; border: 1px solid var(--hdr-pill); border-radius: 4px; font-weight: 600; }
.header-nav a:hover { background: var(--hdr-hover); }

.auth-main { display: flex; justify-content: center; padding: 56px 20px 72px; min-height: calc(100vh - var(--header-h)); }
.card {
  width: 100%; max-width: 440px; align-self: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 36px 36px 32px; box-shadow: 0 8px 28px rgba(28, 37, 67, .08);
}
.card h1 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 600; line-height: 1.2; color: var(--bg-dark); }
.card .sub { margin: 0 0 24px; color: var(--left-muted); font-size: .95rem; }
.card h1:last-child { margin-bottom: 0; }
.card-links { margin: 22px 0 0; font-size: .9rem; }
.card-links a { color: var(--link); }

@media (max-width: 520px) {
  .auth-main { padding: 28px 16px 48px; }
  .card { padding: 28px 22px 24px; }
  .header-nav .who { display: none; }
}

/* Desktop: gently snap the second page to the top of the screen */
@media (min-width: 881px) {
  html { scroll-snap-type: y proximity; }
  .showcase { scroll-snap-align: start; }
}
@media (max-width: 880px) {
  .hero, .showcase { min-height: 0; padding: 28px 0 32px; }
  .shot img { max-height: none; }
  .shot-video, .shot-fallback { width: 100%; }
}

/* Tab panels: screenshot on the left, bullet list (and note) on the right */
.panel-body { display: flex; align-items: flex-start; gap: 28px; }
.panel-body > .shot { flex: 1 1 0; min-width: 0; }
.panel-body > .shot-fallback, .panel-body > .shot-video { flex: 0 1 auto; width: calc(var(--shot-h) * 16 / 9); min-width: 0; }
.panel-side { flex: 0 0 270px; }
.panel-side .chips { display: block; }
.panel-side .chips li {
  position: relative; padding: 5px 0 5px 18px; font-size: .95rem; color: var(--text);
  background: none; border: 0; border-radius: 0;
}
.panel-side .chips li::before {
  content: ""; position: absolute; left: 2px; top: .95em; width: 7px; height: 7px;
  background: var(--bg-dark); border-radius: 50%;
}
.panel-side .note { margin-top: 20px; max-width: none; }

@media (max-width: 1180px) {
  .panel-body { flex-direction: column; }
  .panel-body > .shot, .panel-body > .shot-fallback, .panel-body > .shot-video { flex: none; width: 100%; max-width: 100%; }
  .panel-side { flex: none; width: 100%; }
  .panel-side .chips { columns: 2; column-gap: 24px; }
}

/* Product name next to the company logo */
.site-header .product { color: var(--hdr-product); display: flex; align-items: center; gap: 8px; height: 24px; margin-left: 4px; padding-left: 16px; border-left: 1px solid var(--hdr-divider); }
.site-header .product-name { color: var(--hdr-product); font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }
.site-header .beta { font-size: .7rem; font-weight: 600; line-height: 1.5; color: var(--hdr-beta); border: 1px solid var(--hdr-beta); border-radius: 3px; padding: 0 6px; }

/* Header links: company logo and product name */
.site-header a.brand-link { display: flex; align-items: center; color: inherit; text-decoration: none; }
.site-header a.brand-link:hover { opacity: .85; }
.site-header a.product { text-decoration: none; }
.site-header a.product:hover .product-name { text-decoration: underline; text-underline-offset: 4px; }
.site-header a.brand-link:focus-visible, .site-header a.product:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; border-radius: 3px; }

/* Help link in the header */
.header-nav a.help-link { display: inline-flex; align-items: center; padding: 5px 10px; border-color: transparent; font-weight: 500; color: #dfe5f5; }
.header-nav a.help-link:hover { color: #ffffff; background: rgba(255, 255, 255, .10); border-color: transparent; }
.help-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .72rem; font-weight: 700; line-height: 1; }
