:root {
  --green: #2f7a4f;
  --dark: #18251f;
  --muted: #6c7972;
  --bg: #f7faf8;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(24, 37, 31, 0.1);
  --soft-green: #eef7f1;
  --shadow: 0 28px 70px rgba(24, 37, 31, 0.13);
  --shadow-soft: 0 16px 36px rgba(24, 37, 31, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--dark);
  background:
    radial-gradient(ellipse at 25% 44%, rgba(219, 236, 225, 0.72) 0%, rgba(219, 236, 225, 0.34) 28%, transparent 58%),
    radial-gradient(ellipse at 78% 25%, rgba(47, 122, 79, 0.07) 0%, transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #f7fbf8 52%, #ffffff 100%);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  display: flex;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(24px, 5vw, 68px);
  border-bottom: 1px solid #dfe4e1;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--dark);
  font-size: clamp(1.18rem, 1.45vw, 1.52rem);
  font-weight: 850;
  letter-spacing: -0.05em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(24, 37, 31, 0.16);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  background: rgba(241, 248, 244, 0.92);
  color: #395d45;
  font-size: 0.92rem;
  font-weight: 760;
  box-shadow: 0 12px 30px rgba(47, 122, 79, 0.08);
  transition: transform 130ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.login-icon {
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1;
}

.login-button:hover {
  background: #edf7f1;
  box-shadow: 0 16px 36px rgba(47, 122, 79, 0.12);
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(1px);
}

/* HERO */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(38px, 6vw, 92px);
  width: min(1120px, calc(100% - 36px));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(34px, 4.2vw, 58px) 0 clamp(28px, 3.4vw, 44px);
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 520px;
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--green);
  font-size: clamp(0.9rem, 1.05vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(2.35rem, 3.15vw, 3.38rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.title-mark {
  display: block;
  width: 44px;
  height: 4px;
  margin: 30px 0 24px;
  border-radius: 999px;
  background: var(--green);
}

.lead {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

/* FORM PANEL */
.hero-panel-wrap {
  position: relative;
  z-index: 3;
  isolation: isolate;
  justify-self: end;
  width: min(100%, 480px);
  overflow: visible;
}

.code-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  min-height: auto;
  padding: clamp(24px, 3vw, 34px);
  overflow: visible;
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-owl-peek {
  position: absolute;
  z-index: 1;
  left: -378px;
  top: 52%;
  width: auto;
  height: 710px;
  max-width: none;
  transform: translateY(-50%);
  transform-origin: right center;
  filter: drop-shadow(0 18px 26px rgba(24, 37, 31, 0.14));
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), filter 260ms ease;
}

.panel-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--green);
  background: #edf7f1;
}

.panel-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.panel-header h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.45rem, 1.95vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.code-label {
  display: block;
  margin-bottom: -10px;
  color: var(--dark);
  font-size: 0.94rem;
  font-weight: 520;
}

.code-panel input {
  width: 100%;
  min-height: 56px;
  padding: 10px 18px;
  border: 1px solid rgba(47, 122, 79, 0.34);
  border-radius: 13px;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  font-weight: 760;
  letter-spacing: 0.02em;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(47, 122, 79, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.code-panel input::placeholder {
  color: #9b9f9d;
}

.code-panel input:focus {
  border-color: var(--green);
  box-shadow:
    0 0 0 5px rgba(47, 122, 79, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.secure-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px 18px;
  border: 1px solid rgba(24, 37, 31, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 25px rgba(24, 37, 31, 0.05);
}

.secure-box > div {
  flex: 1;
}

.secure-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-right: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 1.35rem;
  font-weight: 850;
}

.secure-box strong {
  display: block;
  color: var(--dark);
  font-size: 0.98rem;
  font-weight: 520;
}

.turnstile-box {
  display: grid;
  justify-content: stretch;
  justify-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(24, 37, 31, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.turnstile-box .cf-turnstile,
.turnstile-box iframe {
  max-width: 100%;
}

.cta-button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(180deg, #3a9859 0%, var(--green) 100%);
  box-shadow: 0 16px 28px rgba(47, 122, 79, 0.24);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.cta-arrow {
  font-size: 1.6rem;
  font-weight: 360;
}

.cta-button:hover {
  filter: saturate(1.08);
  box-shadow: 0 21px 42px rgba(47, 122, 79, 0.32);
  transform: translateY(-1px);
}

.cta-button:active {
  box-shadow: 0 8px 20px rgba(47, 122, 79, 0.2);
  transform: translateY(1px);
}

.form-message {
  min-height: 22px;
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
}

.form-message.is-error {
  color: #a33a3a;
}

.form-message.is-success {
  color: var(--green);
}

/* FOOTER */
.site-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 18px 16px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.88rem;
  font-weight: 720;
}

.site-footer a {
  padding: 5px 7px;
  border-radius: 8px;
  transition: color 140ms ease, background-color 140ms ease, transform 90ms ease;
}

.site-footer a:hover {
  color: var(--green);
  background: rgba(237, 247, 241, 0.9);
  transform: translateY(-1px);
}

/* OWL EFFECT */
.hero-panel-wrap:hover .panel-owl-peek,
.hero-panel-wrap:focus-within .panel-owl-peek {
  transform: translateY(-50%) scale(1.035);
  filter: drop-shadow(0 22px 32px rgba(24, 37, 31, 0.17));
}

/* DECORATIONS */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  animation: fade-up 620ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* RESPONSIVE */
@media (max-width: 1180px) {
  .hero-visual {
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 460px);
    width: min(100% - 52px, 1180px);
  }
}

@media (max-width: 940px) {
  .site-header {
    min-height: 76px;
    padding: 13px 18px;
  }

  .brand {
    gap: 11px;
    font-size: 1.35rem;
  }

  .login-button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: calc(100vh - 76px);
    padding: 48px 18px 92px;
  }

  .hero-copy {
    max-width: 680px;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.75rem, 10vw, 4.1rem);
  }

  .lead {
    font-size: 1.18rem;
  }

  .hero-panel-wrap {
    justify-self: stretch;
    width: 100%;
  }

  .panel-owl-peek {
    display: none;
  }

  .hero-panel-wrap:hover .panel-owl-peek,
  .hero-panel-wrap:focus-within .panel-owl-peek {
    transform: none;
  }

  .code-panel {
    min-height: auto;
    padding: 28px;
  }

  .panel-header {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
  }

  .panel-icon {
    width: 70px;
    height: 70px;
  }

  .panel-icon svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .login-button {
    gap: 7px;
    padding: 0 12px;
  }

  .hero-visual {
    padding-bottom: 72px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.9rem;
  }

  .title-mark {
    margin: 26px 0 22px;
  }

  .code-panel {
    gap: 22px;
    padding: 22px;
    border-radius: 20px;
  }

  .panel-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .code-panel input {
    min-height: 68px;
    padding: 12px 18px;
  }

  .secure-box {
    min-height: 88px;
    padding: 18px;
  }

  .cta-button {
    min-height: 68px;
    padding: 0 22px;
    font-size: 1.2rem;
  }

}
