:root {
  --color-bg: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.94);
  --color-border: rgba(23, 104, 34, 0.14);
  --color-text: #101b12;
  --color-muted: #5c695e;
  --color-brand: #176822;
  --color-brand-strong: #12531b;
  --color-shadow: 0 24px 80px rgba(16, 27, 18, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(23, 104, 34, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(23, 104, 34, 0.06), transparent 24%),
    var(--color-bg);
  color: var(--color-text);
  font-family: "Poppins", "Segoe UI", sans-serif;
}

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

.page {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 18px;
}

.landing,
.auth {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  flex: 1;
  display: grid;
  place-items: center;
}

.hero,
.auth__shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--color-shadow);
}

.hero {
  min-height: calc(100vh - 116px);
  display: grid;
  place-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 48px 24px;
  text-align: center;
}

.hero__copy {
  margin-top: 24px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  margin: 16px 0 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--color-muted);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

.hero__glow--left {
  top: -90px;
  left: -80px;
  background: rgba(23, 104, 34, 0.08);
}

.hero__glow--right {
  right: -90px;
  bottom: -90px;
  background: rgba(23, 104, 34, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand--icon-only {
  justify-content: center;
}

.brand--compact {
  margin-bottom: 24px;
}

.brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(23, 104, 34, 0.08);
}

.brand__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--color-brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.brand__logo {
  display: block;
  width: min(100%, 165px);
  height: auto;
  object-fit: contain;
}

.brand__label {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button--primary {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(23, 104, 34, 0.18);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-brand-strong);
  transform: translateY(-1px);
}

.button--full {
  width: 100%;
}

.footer {
  padding-top: 16px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(16, 27, 18, 0.56);
}

.auth__shell {
  max-width: 540px;
  padding: 28px;
}

.auth__back {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.auth__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth__subtitle {
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.auth__card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.form {
  display: grid;
  gap: 18px;
}

.form__group {
  display: grid;
  gap: 8px;
}

.form__label {
  font-size: 0.94rem;
  font-weight: 600;
}

.form__input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(16, 27, 18, 0.12);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
  border-color: rgba(23, 104, 34, 0.48);
  box-shadow: 0 0 0 4px rgba(23, 104, 34, 0.08);
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 53, 53, 0.18);
  border-radius: var(--radius-md);
  background: #fff4f4;
  color: #8c2c2c;
  font-size: 0.94rem;
}

@media (min-width: 768px) {
  .page {
    padding: 32px 28px 20px;
  }

  .hero__content {
    padding: 72px 48px;
  }

  .auth__shell {
    padding: 36px;
  }
}
