:root {
  --ovotus-green: #00a878;
  --ovotus-green-dark: #006b50;
  --forest: #075c49;
  --ink: #24302b;
  --muted: #6c7772;
  --line: #d8e2dd;
  --surface: #ffffff;
  --field: #fafcfb;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: #ffffff; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: #ffffff; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.public-page { overflow-x: hidden; }

.legacy-home {
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}

.logo-index { display: block; width: 220px; height: 55px; text-decoration: none; }
.logo-index img { display: block; width: 100%; height: 100%; object-fit: contain; }

.language-links { color: var(--ovotus-green-dark); font-size: 12px; text-align: center; }
.language-links a { color: inherit; text-decoration: none; }
.language-links a.active { color: var(--ovotus-green); font-weight: 800; }
.public-language-links { display: flex; align-items: center; gap: 8px; margin: 13px 0 24px; }

.marketing-hero {
  width: 100%;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 70px 24px;
  background: var(--forest);
  color: #ffffff;
}
.marketing-copy { width: min(100%, 980px); text-align: center; }
.marketing-kicker {
  margin: 0 0 20px;
  color: var(--ovotus-green);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}
.marketing-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: 64px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.marketing-body {
  max-width: 760px;
  margin: 28px auto 0;
  color: #dce9e3;
  font-size: 20px;
  line-height: 1.55;
}
.marketing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-button {
  min-width: 150px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 800;
}
.hero-button-primary { border-color: var(--ovotus-green); background: var(--ovotus-green); color: #15230b; }
.hero-button-light { border-color: #ffffff; background: #ffffff; color: var(--forest); }
.hero-button:hover { filter: brightness(1.05); }

.site-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  flex: 0 0 auto;
  padding: 18px 16px 22px;
  color: var(--ovotus-green-dark);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.site-footer .footer-brand { display: inline-flex; margin-bottom: 2px; line-height: 0; }
.site-footer .footer-brand img { display: block; width: 132px; height: 26px; object-fit: contain; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(10, 24, 19, .74);
}
.auth-modal {
  position: relative;
  width: min(100%, 450px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 7px;
  padding: 26px 24px 28px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.modal-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #6d7973;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 5px 42px 22px 0;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  min-height: 43px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 9px 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}
.auth-tabs button.active { border-bottom-color: var(--ovotus-green); color: var(--forest); }

.auth-form { display: grid; gap: 16px; }
.auth-form h2 { margin: 0 38px 4px 0; color: var(--ovotus-green-dark); font-size: 24px; line-height: 1.2; }
.field-label { display: grid; gap: 7px; color: #56635d; font-size: 12px; font-weight: 700; }
.form-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 11px;
  outline: none;
  background: var(--field);
  color: var(--ink);
}
.form-control:focus, .password-field:focus-within { border-color: var(--ovotus-green); box-shadow: 0 0 0 3px rgba(0,168,120,.18); }
.password-field {
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--field);
}
.password-field .form-control { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.password-toggle { width: 44px; border: 0; border-left: 1px solid #e4e8e5; background: #ffffff; cursor: pointer; }
.password-toggle img { display: block; width: 23px; height: 18px; margin: auto; object-fit: contain; }

.primary-button {
  min-width: 118px;
  min-height: 38px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50px;
  padding: 8px 20px;
  background: var(--ovotus-green);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.primary-button:hover:not(:disabled) { filter: brightness(1.06); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; }
.primary-button.is-loading { position: relative; color: transparent; pointer-events: none; }
.primary-button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-button {
  justify-self: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ovotus-green-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.text-button:hover { text-decoration: underline; }
.form-message { min-height: 0; }
.form-message:not(:empty) {
  margin: 0 0 17px;
  border-left: 4px solid #ef7d52;
  padding: 10px 12px;
  background: #fff5ef;
  color: #70341c;
  font-size: 13px;
  line-height: 1.45;
}
.form-message.success:not(:empty) { border-left-color: var(--ovotus-green); background: #f3fae9; color: #365710; }
.notice { margin: 0; border-left: 4px solid var(--ovotus-green); padding: 10px 12px; background: #f3fae9; color: #365710; font-size: 13px; line-height: 1.45; }
.country-notice { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.checkbox-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px; color: #56635d; font-size: 12px; line-height: 1.45; }
.checkbox-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--ovotus-green-dark); }
.checkbox-row a { color: var(--ovotus-green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.code-input { min-height: 58px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 9px; }
.auth-form > .text-button { margin-top: 2px; }

[dir="rtl"] .auth-tabs { margin-right: 0; margin-left: 42px; }
[dir="rtl"] .modal-close { right: auto; left: 9px; }
[dir="rtl"] .auth-form h2 { margin-right: 0; margin-left: 38px; }
[dir="rtl"] .password-toggle { border-left: 0; border-right: 1px solid #e4e8e5; }

@media (max-width: 720px) {
  .marketing-hero { min-height: 500px; padding: 56px 20px; }
  .marketing-hero h1 { font-size: 46px; }
  .marketing-body { font-size: 18px; }
}

@media (max-width: 520px) {
  .legacy-home { padding-top: 20px; }
  .logo-index { width: 198px; height: 50px; }
  .public-language-links { margin-bottom: 18px; }
  .marketing-hero { min-height: 520px; padding: 48px 16px; }
  .marketing-kicker { font-size: 14px; }
  .marketing-hero h1 { font-size: 39px; line-height: 1.08; }
  .marketing-body { font-size: 17px; line-height: 1.5; }
  .marketing-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 300px); margin-inline: auto; }
  .hero-button { width: 100%; }
  .auth-modal { padding: 23px 16px 25px; }
  .modal-backdrop { padding: 10px; }
}

@media (max-width: 350px) {
  .logo-index { width: 180px; height: 46px; }
  .marketing-hero h1 { font-size: 34px; }
  .auth-tabs { margin-right: 36px; }
}

/* Ovotus footer: same centered structure as Kopargo. */
.public-page .app-footer {
  width: 100%;
  flex: 0 0 auto;
  border-top: 1px solid #dce7e1;
  background: #fff;
  color: #6f7f77;
  text-align: center;
  font-size: 12px;
}
.public-page .app-footer-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 12px 10px 16px;
  box-sizing: border-box;
}
.public-page .app-footer-brand-line {
  margin: 0 0 8px;
  line-height: 1.45;
}
.public-page .app-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 7px;
  margin: 0 auto;
}
.public-page .app-footer-links a {
  color: #6f7f77;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.35;
}
.public-page .app-footer-links a:hover,
.public-page .app-footer-links a:focus-visible {
  color: #4f8d18;
}
.public-page .app-footer-link-separator {
  color: #8a9791;
  line-height: 1.35;
  user-select: none;
}
.public-page .app-footer-logo {
  margin: 10px 0 0;
}
.public-page .app-footer-logo a {
  display: inline-flex;
  line-height: 0;
}
.public-page .app-footer-logo img {
  display: block;
  width: 86px;
  height: 23px;
  max-height: 23px;
  border-radius: 0;
  object-fit: fill;
  image-rendering: auto;
}
@media (max-width: 420px) {
  .public-page .app-footer-inner { padding-inline: 8px; }
  .public-page .app-footer-links { gap: 7px 5px; }
  .public-page .app-footer-logo img { width: 76px; height: 20px; max-height: 20px; }
}