:root {
  --green: #81b92a;
  --green-dark: #5f9218;
  --green-deep: #406d0b;
  --green-soft: #eff8df;
  --orange: #eb5b15;
  --black: #151a16;
  --text: #263027;
  --muted: #687169;
  --white: #fff;
  --page: #f4f6f2;
  --border: #1b2b1c1f;
  --border-strong: #1b2b1c33;
  --danger: #b42318;
  --danger-bg: #fff0ee;
  --success: #28760d;
  --success-bg: #effbea;
  --warning: #8a5700;
  --warning-bg: #fff7e6;
  --shadow: 0 24px 60px #13250f1c;
  --shadow-soft: 0 10px 30px #13250f14;
  --radius: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
  font-family: Archivo Condensed, Arial, sans-serif;
}

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

html {
  background: var(--page);
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #81b92a1f, #0000 36%), linear-gradient(135deg, #f6f8f3 0%, #fff 55%, #f1f5ec 100%);
  margin: 0;
  overflow-x: hidden;
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.cursor-glow {
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, #81b92a1c, #81b92a06 45%, #0000 70%);
  border-radius: 50%;
  width: 460px;
  height: 460px;
  transition: opacity .3s;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.js-ready .cursor-glow {
  opacity: 1;
}

.page {
  z-index: 1;
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr);
  min-height: 100vh;
  display: grid;
  position: relative;
}

.hero {
  background: linear-gradient(145deg, #71a51bfa, #4b7e0efa);
  align-items: center;
  min-height: 100vh;
  padding: clamp(48px, 7vw, 100px) clamp(40px, 7vw, 105px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 25% 15%, #ffffff2b, #0000 32%), linear-gradient(110deg, #0000, #ffffff09);
  position: absolute;
  inset: 0;
}

.hero-logo-bg {
  opacity: .055;
  pointer-events: none;
  width: min(700px, 85%);
  position: absolute;
  bottom: -70px;
  right: -150px;
  transform: rotate(-8deg);
}

.hero-logo-bg img {
  filter: brightness(0);
  width: 100%;
  height: auto;
  display: block;
}

.hero-inner {
  z-index: 2;
  width: min(720px, 100%);
  position: relative;
}

.hero-back-link {
  color: #ffffffd9;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, color .2s;
  display: inline-flex;
}

.hero-back-link:hover {
  color: #fff;
  transform: translateX(-3px);
}

.hero-badge {
  color: #fffffff0;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #ffffff17;
  border: 1px solid #ffffff47;
  border-radius: 999px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 13px;
  font-size: .76rem;
  font-weight: 700;
  display: inline-flex;
}

.hero-title {
  color: #fff;
  letter-spacing: -.04em;
  max-width: 650px;
  margin: 0 0 24px;
  font-size: clamp(3.3rem, 5.4vw, 6.4rem);
  font-weight: 800;
  line-height: .88;
}

.hero-title span {
  color: #1c2913;
}

.hero-text {
  color: #ffffffd6;
  max-width: 680px;
  margin: 0 0 20px;
  font-family: Arial, sans-serif;
  font-size: clamp(.93rem, 1.1vw, 1.06rem);
  line-height: 1.68;
}

.hero-text strong {
  color: #fff;
}

.hero-text-strong span {
  color: #f0ffbf;
  font-weight: 700;
}

.hero-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 34px;
  display: grid;
}

.hero-highlight-card {
  backdrop-filter: blur(12px);
  background: #ffffff17;
  border: 1px solid #ffffff2e;
  border-radius: 18px;
  min-height: 105px;
  padding: 19px;
}

.hero-highlight-card strong {
  color: #fff;
  margin-bottom: 7px;
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.hero-highlight-card span {
  color: #ffffffb8;
  font-family: Arial, sans-serif;
  font-size: .78rem;
  line-height: 1.45;
}

.panel {
  backdrop-filter: blur(16px);
  background: #ffffffb8;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 80px);
  display: flex;
}

.card {
  border-radius: var(--radius);
  width: min(580px, 100%);
  box-shadow: var(--shadow);
  background: #fffffff5;
  border: 1px solid #1f3a1b1a;
  padding: clamp(26px, 4vw, 42px);
}

.card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 25px;
  display: flex;
}

.card-kicker {
  color: var(--green-dark);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-size: .75rem;
  font-weight: 800;
  display: block;
}

.card-header h2 {
  color: var(--black);
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.subtitle {
  max-width: 390px;
  color: var(--muted);
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: .88rem;
  line-height: 1.5;
}

.badge {
  background: var(--green-soft);
  min-height: 32px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
}

.badge-secure:before {
  content: "●";
  color: #58a71f;
  margin-right: 6px;
  font-size: .62rem;
}

.security-info {
  background: linear-gradient(135deg, #f7fced, #fff);
  border: 1px solid #46891b21;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 13px 15px;
  display: flex;
}

.security-icon {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  flex: 0 0 32px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-weight: 800;
  display: inline-flex;
}

.security-info strong {
  color: #304a1d;
  margin-bottom: 2px;
  font-size: .87rem;
  display: block;
}

.security-info div span {
  color: #718068;
  font-family: Arial, sans-serif;
  font-size: .75rem;
}

.coop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.coop-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  min-height: 178px;
  color: var(--text);
  text-align: left;
  background: #fff;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.coop-card:after {
  content: "→";
  color: var(--green-dark);
  opacity: 0;
  font-size: 1.2rem;
  transition: opacity .2s, transform .2s;
  position: absolute;
  bottom: 16px;
  right: 18px;
  transform: translateX(-7px);
}

.coop-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: #81b92a7a;
  transform: translateY(-4px);
}

.coop-card:hover:after {
  opacity: 1;
  transform: translateX(0);
}

.coop-card:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #81b92a52;
}

.coop-logo {
  align-items: center;
  height: 54px;
  margin-bottom: 16px;
  display: flex;
}

.coop-logo img {
  object-fit: contain;
  width: auto;
  max-width: 82px;
  height: auto;
  max-height: 54px;
  display: block;
}

.coop-card strong {
  color: var(--black);
  margin-bottom: 7px;
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
}

.coop-card > span {
  max-width: 180px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: .77rem;
  line-height: 1.42;
}

.coop-card-governance {
  background: linear-gradient(145deg, #f9fbf7, #eef5e8);
}

.back-coop-btn {
  color: var(--green-dark);
  background: none;
  border: 0;
  margin: -5px 0 22px;
  padding: 0;
  font-size: .82rem;
  font-weight: 700;
  transition: color .2s, transform .2s;
}

.back-coop-btn:hover {
  color: var(--green-deep);
  transform: translateX(-3px);
}

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

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

.field label {
  color: #313b32;
  font-size: .83rem;
  font-weight: 700;
}

.input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  width: 100%;
  height: 51px;
  color: var(--black);
  background: #fff;
  outline: none;
  padding: 0 15px;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.input::placeholder {
  color: #a0a8a0;
}

.input:hover {
  border-color: #4c674157;
}

.input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px #81b92a21;
}

.input:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 54px;
}

.password-toggle {
  color: #6c746c;
  background: none;
  border: 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--green-dark);
  background: #f2f5ef;
}

.password-toggle:focus-visible {
  outline: 3px solid #81b92a40;
}

.password-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}

.password-toggle .eye-closed, .password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

.row {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.checkbox {
  color: #5f685f;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: .78rem;
  display: inline-flex;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.checkbox.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.link {
  color: var(--green-dark);
  font-family: Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.governance-session-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #b2700026;
  border-radius: 11px;
  padding: 11px 13px;
  font-family: Arial, sans-serif;
  font-size: .75rem;
  line-height: 1.45;
}

.btn {
  border: 0;
  border-radius: 13px;
  min-height: 53px;
  font-weight: 800;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}

.btn-primary {
  background: linear-gradient(135deg,
      var(--green),
      #68a218);
  color: #fff;
  box-shadow: 0 10px 20px #5c931633;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 13px 26px #5c931645;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.btn-block {
  width: 100%;
}

.loadingbar {
  opacity: 0;
  background: #81b92a1f;
  border-radius: 999px;
  height: 3px;
  transition: opacity .2s;
  overflow: hidden;
}

.loadingbar.show {
  opacity: 1;
}

.loadingbar > div {
  border-radius: inherit;
  background: var(--green);
  width: 38%;
  height: 100%;
  transform: translateX(-120%);
}

.loadingbar.show > div {
  animation: .9s linear infinite loginLoading;
}

@keyframes loginLoading {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(320%);
  }
}

.msg {
  border-radius: 12px;
  padding: 13px 14px;
  font-family: Arial, sans-serif;
  font-size: .8rem;
  line-height: 1.5;
  display: none;
}

.msg:not(:empty) {
  display: block;
}

.msg.is-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #b4231821;
}

.msg.is-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #28760d21;
}

.footer-note {
  color: #838b83;
  align-items: flex-start;
  gap: 9px;
  padding-top: 5px;
  font-family: Arial, sans-serif;
  font-size: .7rem;
  line-height: 1.5;
  display: flex;
}

.footer-lock {
  flex: none;
  font-size: .77rem;
}

.noscript-warning {
  z-index: 9999;
  color: #fff;
  text-align: center;
  background: #9d2018;
  border-radius: 14px;
  padding: 16px;
  font-family: Arial, sans-serif;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.js-ready [data-reveal] {
  animation: .55s both revealPage;
}

.js-ready .panel[data-reveal] {
  animation-delay: 80ms;
}

@keyframes revealPage {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (width <= 1020px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 55px clamp(25px, 7vw, 65px);
  }

  .hero-title {
    max-width: 680px;
  }

  .panel {
    min-height: auto;
    padding: 45px 25px 65px;
  }

  .card {
    width: min(660px, 100%);
  }
}

@media (width <= 620px) {
  .hero {
    padding: 40px 22px;
  }

  .hero-back-link {
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 28px 14px 45px;
  }

  .card {
    border-radius: 21px;
    padding: 23px 18px;
  }

  .card-header {
    gap: 10px;
  }

  .badge {
    min-height: 28px;
    padding: 0 9px;
    font-size: .64rem;
  }

  .coop-grid {
    grid-template-columns: 1fr;
  }

  .coop-card {
    min-height: 132px;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (width <= 380px) {
  .card-header {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .cursor-glow {
    display: none;
  }
}
