:root {
  --green-950: #062d24;
  --green-900: #083c30;
  --green-800: #0d4f3e;
  --green-700: #17634e;
  --lime: #c8f135;
  --lime-soft: #e9ff9b;
  --ink: #10231d;
  --muted: #65736e;
  --line: #dfe7e3;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --danger: #a83232;
  --danger-bg: #fff1f1;
  --success-bg: #effbea;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(200, 241, 53, 0.13),
      transparent 26%
    ),
    #f4f7f5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  height: 82px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-950);
  background: var(--lime);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.back-link {
  color: var(--green-800);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.registration-page {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 0.78fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.registration-intro {
  padding-top: 48px;
}

.eyebrow,
.panel-label,
.modal-eyebrow {
  display: inline-block;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.registration-intro h1 {
  margin: 18px 0 22px;
  max-width: 680px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--green-950);
}

.registration-intro h1 span {
  color: var(--green-700);
}

.registration-intro > p {
  max-width: 590px;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.feature-list {
  margin-top: 50px;
  display: grid;
  gap: 18px;
}

.feature-item {
  max-width: 570px;
  display: flex;
  gap: 17px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-950);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
}

.feature-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.registration-panel {
  padding: clamp(28px, 4vw, 46px);
  background: var(--surface);
  border: 1px solid rgba(8, 60, 48, 0.1);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(8, 60, 48, 0.1);
}

.panel-heading h2 {
  margin: 10px 0 8px;
  font-size: 32px;
  letter-spacing: -0.035em;
  color: var(--green-950);
}

.panel-heading p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.referral-card {
  margin-bottom: 26px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 16px;
  background: var(--success-bg);
  border: 1px solid #d7edca;
}

.referral-status-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-800);
  color: white;
  font-weight: 800;
}

.referral-card span,
.referral-card small {
  display: block;
}

.referral-card span {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green-700);
}

.referral-card strong {
  display: block;
  font-size: 14px;
}

.referral-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.referral-error {
  margin-bottom: 25px;
  padding: 15px 17px;
  border-radius: 14px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f0cccc;
}

.referral-error strong,
.referral-error span {
  display: block;
}

.referral-error span {
  margin-top: 4px;
  font-size: 12px;
}

.form-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f0cccc;
  font-size: 13px;
  line-height: 1.55;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-950);
}

.field label span {
  color: var(--green-700);
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  outline: none;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input:focus {
  background: white;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(23, 99, 78, 0.09);
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.contact-notice {
  margin: -4px 0 20px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
}

.agreement {
  margin: 8px 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agreement input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.register-button,
.continue-button {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green-950);
  background: var(--lime);
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.register-button:hover,
.continue-button:hover {
  transform: translateY(-2px);
  background: var(--lime-soft);
}

.register-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-arrow {
  font-size: 21px;
}

.login-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.login-note a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: none;
}

.login-note a:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(3, 28, 22, 0.78);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(470px, 100%);
  padding: 42px;
  text-align: center;
  border-radius: 26px;
  background: white;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
}

.success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--lime);
  font-size: 25px;
  font-weight: 900;
}

.modal-card h2 {
  margin: 10px 0 10px;
  color: var(--green-950);
  font-size: 30px;
  letter-spacing: -0.035em;
}

.modal-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.member-referral-box {
  margin: 26px 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.member-referral-box span,
.member-referral-box small {
  display: block;
}

.member-referral-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.member-referral-box strong {
  display: block;
  margin: 8px 0;
  color: var(--green-800);
  font-size: 23px;
  letter-spacing: 0.06em;
}

.member-referral-box small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .registration-page {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .registration-intro {
    padding-top: 10px;
  }

  .feature-list {
    margin-top: 35px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .brand-copy {
    display: none;
  }

  .registration-page {
    width: min(100% - 28px, 720px);
    padding: 38px 0 50px;
  }

  .registration-intro h1 {
    font-size: 43px;
  }

  .registration-panel {
    padding: 25px 20px;
    border-radius: 21px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-card {
    padding: 34px 22px;
  }
}

.member-referral-link {
  margin: 10px 0 14px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.copy-referral-button {
  width: 100%;
  min-height: 42px;
  margin-bottom: 13px;
  padding: 0 16px;
  border: 1px solid var(--green-800);
  border-radius: 10px;
  background: transparent;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;

  transition:
    background 160ms ease,
    color 160ms ease;
}

.copy-referral-button:hover {
  background: var(--green-800);
  color: #ffffff;
}
/* ============================================================
   EMV-WEB-GLOBAL-HEADER-A001-R1B-R2
   HEADER LOGO - EXACT DASHBOARD SIZE MODEL
   ============================================================ */

.emv-header-logo {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  object-fit: contain;
}

/* END EMV-WEB-GLOBAL-HEADER-A001-R1B-R2 */
