:root{
  --linvora-navy: #142238;
  --linvora-cobalt: #345EEF;
  --linvora-turquoise: #32C8B0;
  --linvora-mist: #EEF2F7;
  --linvora-graphite: #182538;
  --linvora-white: #FFFFFF;
  --linvora-muted: #607088;
}
/* Linvora portal — approved identity v1.0.
   Theme follows prefers-color-scheme; browser/system decides automatically.
   Master SVGs and color tokens come from branding/official/v1.0.
   No manual theme selection and no modifications to Odoo native screens. */
:root {
  color-scheme: light;
  --surface-page: var(--linvora-mist);
  --surface-brand: var(--linvora-navy);
  --surface-entry: var(--linvora-white);
  --surface-field: var(--linvora-white);
  --surface-notice: var(--linvora-mist);
  --text-main: var(--linvora-graphite);
  --text-title: var(--linvora-navy);
  --text-muted: var(--linvora-muted);
  --text-brand: var(--linvora-white);
  --text-brand-muted: #d1d9e7;
  --text-brand-foot: #b9c8da;
  --border-entry: #e0e7f0;
  --border-field: #cbd6e5;
  --border-field-hover: #93a5c0;
  --accent-action: var(--linvora-cobalt);
  --accent-action-hover: #274bd6;
  --accent-copy: var(--linvora-cobalt);
  --accent-focus: var(--linvora-turquoise);
  --shadow-entry: 0 12px 40px #14223810;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface-page);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  padding: clamp(16px, 3.5vw, 48px);
}
.brand-panel {
  background: var(--surface-brand);
  color: var(--text-brand);
  border-radius: 22px 0 0 22px;
  padding: clamp(30px, 4.4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 660px;
}
.logo { display: block; max-width: 100%; width: 252px; height: auto; }
.eyebrow, .section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
}
.eyebrow { color: var(--linvora-turquoise); }
.brand-heading {
  color: var(--text-brand);
  max-width: 460px;
  margin: 12px 0 18px;
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.brand-description {
  max-width: 360px;
  line-height: 1.7;
  color: var(--text-brand-muted);
  font-size: 16px;
}
.brand-footnote { margin: 0; font-size: 12px; color: var(--text-brand-foot); }
.entry-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 65px clamp(24px, 4.8vw, 72px);
  border: 1px solid var(--border-entry);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  background: var(--surface-entry);
  box-shadow: var(--shadow-entry);
}
.entry-content { max-width: 440px; width: 100%; margin: 0 auto; }
.section-kicker { color: var(--accent-copy); margin: 0 0 12px; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(29px, 3vw, 38px);
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: -0.035em;
}
p { font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.entry-content > p { margin: 0 0 24px; }
label {
  display: block;
  margin: 20px 0 7px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}
input {
  width: 100%;
  min-height: 47px;
  display: block;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text-main);
  border: 1px solid var(--border-field);
  border-radius: 10px;
  background: var(--surface-field);
}
input:hover { border-color: var(--border-field-hover); }
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-focus);
  outline-offset: 3px;
}
button {
  width: 100%;
  margin: 26px 0 0;
  min-height: 49px;
  padding: 13px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--linvora-white);
  background: var(--accent-action);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button:hover { background: var(--accent-action-hover); }
button:active { transform: translateY(1px); }
a { color: var(--accent-copy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
nav { margin-top: 26px; display: flex; gap: 18px; justify-content: center; }
.notice {
  padding: 15px 18px;
  margin: 24px 0;
  background: var(--surface-notice);
  color: var(--text-main);
  border-left: 3px solid var(--accent-action);
  border-radius: 8px;
}
.mobile-logo { display: none; }

/* First-class dark theme. No inverted images, browser auto-darkening or
   unofficial brand marks. Light/dark use the same approved SVGs. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface-page: var(--linvora-navy);
    --surface-brand: var(--linvora-navy);
    --surface-entry: var(--linvora-graphite);
    --surface-field: var(--linvora-navy);
    --surface-notice: var(--linvora-navy);
    --text-main: var(--linvora-mist);
    --text-title: var(--linvora-white);
    --text-muted: #c8d3e4;
    --border-entry: #3a4961;
    --border-field: #64748b;
    --border-field-hover: var(--linvora-turquoise);
    --accent-copy: var(--linvora-turquoise);
    --accent-action: var(--linvora-cobalt);
    --accent-action-hover: #274bd6;
    --shadow-entry: 0 12px 40px #0c142038;
  }
}
@media (max-width: 800px) {
  body { background: var(--surface-entry); }
  .shell {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .brand-panel {
    min-height: 0;
    padding: 20px 24px;
    border-radius: 0;
    gap: 4px;
  }
  .brand-panel .logo { width: 180px; }
  .brand-panel .brand-message, .brand-panel .brand-footnote { display: none; }
  .entry-panel {
    flex: 1;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 28px 24px 40px;
  }
  .entry-content { max-width: 450px; }
  .entry-content > p { margin-bottom: 18px; }
  label { margin-top: 16px; }
  button { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  button:active { transform: none; }
}
