:root {
  --sta-white: #ffffff;
  --sta-navy: #12355b;
  --sta-teal: #2c7a6b;
  --sta-teal-dark: #245f54;
  --sta-soft: #f5f7f8;
  --sta-info: #eaf2f8;
  --sta-line: #d7dee3;
  --sta-text: #263746;
  --sta-muted: #62717c;
  --sta-red: #b54747;
  --sta-radius: 6px;
}

* { box-sizing: border-box; }

body:has(.sta-login-page) {
  margin: 0;
  color: var(--sta-text);
  background: var(--sta-white) !important;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body:has(.sta-login-page) > div {
  display: block !important;
  min-height: 100vh;
}

body:has(.sta-login-page) > div > main,
body:has(.sta-login-page) > div > main > .container {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.sta-login-page) .o_database_list {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  border-radius: 0 !important;
}

body:has(.sta-login-page) .o_database_list > .card-body > .text-center:has(img[src*="/web/binary/company_logo"]),
body:has(.sta-login-page) .o_database_list > .card-body > .text-center:has(a[href="/web/database/manager"]) {
  display: none !important;
}

body:has(.sta-login-page) .o_database_list > .card-body,
body:has(.sta-login-page) .card,
body:has(.sta-login-page) .oe_login_form {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sta-login-page {
  min-height: 100vh;
  color: var(--sta-text);
  background: var(--sta-white);
}

.sta-header,
.sta-login-shell,
.sta-auth-shell {
  width: min(calc(100% - 48px), 1080px);
  margin-inline: auto;
}

.sta-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--sta-line);
}

.sta-brand,
.sta-nav,
.sta-row,
.sta-support {
  display: flex;
  align-items: center;
}

.sta-brand {
  gap: 10px;
  color: var(--sta-navy);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sta-brand img { width: 38px; height: 38px; }
.sta-nav { gap: 22px; }

.sta-nav a,
.sta-row a,
.sta-support a {
  color: var(--sta-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.sta-nav a:hover,
.sta-row a:hover,
.sta-support a:hover { color: var(--sta-teal); }

.sta-nav-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 15px;
  color: var(--sta-white) !important;
  background: var(--sta-teal);
  border-radius: var(--sta-radius);
}

.sta-nav-action:hover { background: var(--sta-teal-dark); }

.sta-login-shell {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: 88px;
  padding-block: 64px;
}

.sta-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--sta-navy);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.sta-lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--sta-muted);
  font-size: 18px;
  line-height: 1.6;
}

.sta-assurance {
  margin: 38px 0 0;
  padding: 0;
  border-top: 2px solid var(--sta-navy);
  list-style: none;
}

.sta-assurance li {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--sta-line);
}

.sta-assurance strong { color: var(--sta-navy); font-size: 15px; font-weight: 600; }
.sta-assurance span { color: var(--sta-muted); font-size: 14px; }

.sta-login-card {
  padding: 30px;
  border: 1px solid #c7d0d6;
  border-radius: var(--sta-radius);
  background: var(--sta-white);
  box-shadow: 5px 5px 0 var(--sta-soft);
}

.sta-card-head h1,
.sta-card-head h2 {
  margin: 0;
  color: var(--sta-navy);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.sta-card-head p { margin: 7px 0 0; color: var(--sta-muted); font-size: 14px; }

.sta-form {
  display: grid;
  gap: 15px;
  margin-top: 27px !important;
}

.sta-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--sta-text);
  font-size: 14px;
  font-weight: 600;
}

.sta-field input,
.sta-field select,
.sta-password-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--sta-text);
  background: var(--sta-white);
  border: 1px solid #9bacb8;
  border-radius: var(--sta-radius);
  font: inherit;
  outline: 0;
}

.sta-field input::placeholder,
.sta-password-row input::placeholder { color: #82909a; }

.sta-field input:focus,
.sta-field select:focus,
.sta-password-row input:focus {
  border-color: var(--sta-teal);
  box-shadow: 0 0 0 3px rgba(44, 122, 107, 0.12);
}

.sta-password-row { display: flex; align-items: stretch; }
.sta-password-row input { border-radius: var(--sta-radius) 0 0 var(--sta-radius); }

.sta-eye {
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sta-muted);
  background: var(--sta-soft);
  border: 1px solid #9bacb8;
  border-left: 0;
  border-radius: 0 var(--sta-radius) var(--sta-radius) 0;
}

.sta-row {
  justify-content: space-between;
  gap: 16px;
  margin-top: 1px;
  color: var(--sta-muted);
  font-size: 13px;
}

.sta-check { display: inline-flex; align-items: center; gap: 7px; color: var(--sta-muted); font-weight: 500; }
.sta-check input { accent-color: var(--sta-teal); }

.sta-submit {
  width: 100%;
  min-height: 48px;
  color: var(--sta-white);
  background: var(--sta-teal);
  border: 1px solid var(--sta-teal);
  border-radius: var(--sta-radius);
  font-size: 15px;
  font-weight: 600;
}

.sta-submit:hover { background: var(--sta-teal-dark); }
.sta-debug { width: 100%; margin-top: 8px; color: var(--sta-navy); background: transparent; border: 0; }

.sta-alert { margin: 0; padding: 10px 12px; border-radius: var(--sta-radius); font-size: 13px; }
.sta-alert-error { color: #8b3030; background: #faeeee; border: 1px solid #e2b8b8; }
.sta-alert-success { color: var(--sta-teal-dark); background: #edf6f3; border: 1px solid #bdd5cf; }

.sta-support {
  justify-content: space-between;
  gap: 16px;
  margin-top: 23px;
  padding-top: 20px;
  color: var(--sta-muted);
  border-top: 1px solid var(--sta-line);
  font-size: 14px;
}

.sta-auth-shell {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding-block: 48px;
}

.sta-signup-card { width: min(100%, 520px); }
.sta-signup-card .sta-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sta-signup-card .sta-field-wide,
.sta-signup-card .sta-alert,
.sta-signup-card .sta-buttons,
.sta-signup-card .sta-terms { grid-column: 1 / -1; }

.sta-terms { display: flex; align-items: flex-start; gap: 9px; color: var(--sta-muted); font-size: 13px; }
.sta-terms input { margin-top: 3px; accent-color: var(--sta-teal); }
:focus-visible { outline: 3px solid #c98a2e; outline-offset: 3px; }

@media (max-width: 820px) {
  .sta-login-shell { grid-template-columns: 1fr; gap: 42px; }
  .sta-copy h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .sta-header,
  .sta-login-shell,
  .sta-auth-shell { width: min(calc(100% - 32px), 1080px); }
  .sta-header { min-height: 64px; }
  .sta-nav > a:first-child { display: none; }
  .sta-nav { gap: 10px; }
  .sta-nav-action { min-height: 38px; padding-inline: 12px; }
  .sta-login-shell { min-height: calc(100vh - 65px); padding-block: 38px; }
  .sta-copy h1 { font-size: 30px; }
  .sta-lede { font-size: 16px; }
  .sta-assurance li { grid-template-columns: 1fr; gap: 4px; }
  .sta-login-card { padding: 23px 20px; box-shadow: 3px 3px 0 var(--sta-soft); }
  .sta-signup-card .sta-form { grid-template-columns: 1fr; }
  .sta-signup-card .sta-field-wide,
  .sta-signup-card .sta-alert,
  .sta-signup-card .sta-buttons,
  .sta-signup-card .sta-terms { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
