/* ==========================================================================
   VARIABLES / ROOT
   ========================================================================== */

:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef4ed;
  --ink: #1b2520;
  --muted: #65746c;
  --line: #dfe6dd;
  --primary: #2f7d5c;
  --primary-dark: #225f46;
  --accent: #d78339;
  --blue: #326d8f;
  --danger: #bc4b4b;
  --shadow: 0 18px 45px rgba(35, 55, 44, 0.12);
}

/* ==========================================================================
   AUTH MODAL
   ========================================================================== */

/* Premium authentication modal */
.auth-modal-backdrop {
  place-items: center;
  overflow-y: auto;
  padding: clamp(20px, 4vh, 44px) 18px;
  background:
    radial-gradient(circle at 12% 22%, rgba(143, 207, 184, 0.2), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(79, 143, 191, 0.12), transparent 26%),
    rgba(241, 248, 245, 0.78);
  backdrop-filter: blur(14px);
}

.auth-modal {
  width: min(640px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid rgba(218, 232, 226, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 90px rgba(29, 67, 55, 0.18);
  scrollbar-width: thin;
  scrollbar-color: #bdd8ce transparent;
}

.auth-modal .public-auth-section.auth-experience {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 52px);
  background: transparent;
}

.auth-modal .auth-organic {
  position: absolute;
  z-index: 0;
  display: block;
  width: 115px;
  height: 210px;
  border-radius: 100% 0 100% 0;
  pointer-events: none;
  opacity: 0.52;
}

.auth-modal .auth-organic-one {
  top: 118px;
  right: -68px;
  transform: rotate(-28deg);
  background: linear-gradient(160deg, rgba(196, 230, 216, 0.66), rgba(255, 255, 255, 0));
}

.auth-modal .auth-organic-two {
  bottom: -120px;
  left: -70px;
  transform: rotate(38deg);
  background: linear-gradient(160deg, rgba(196, 224, 232, 0.5), rgba(255, 255, 255, 0));
}

.auth-modal .auth-heading,
.auth-modal .public-auth-card {
  position: relative;
  z-index: 1;
}

.auth-modal .auth-heading {
  margin-bottom: 28px;
  padding-right: 36px;
}

.auth-modal .auth-heading h2 {
  max-width: 510px;
  margin-top: 18px;
  color: #172532;
  font-size: clamp(29px, 4.5vw, 42px);
  line-height: 1.13;
  font-weight: 800;
}

.auth-modal .auth-heading p {
  max-width: 490px;
  margin-top: 12px;
  color: #697684;
  font-size: 15px;
  line-height: 1.6;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid #d8ece4;
  border-radius: 999px;
  padding: 8px 14px;
  color: #2b7561;
  background: #edf8f4;
  font-size: 13px;
  font-weight: 800;
}

.auth-badge .ui-icon {
  width: 17px;
  height: 17px;
}

.auth-modal .modal-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid #e6eeea;
  border-radius: 50%;
  color: #24313c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(36, 58, 49, 0.1);
  font-size: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.auth-modal .modal-close:hover {
  color: #2e7d68;
  box-shadow: 0 13px 30px rgba(36, 58, 49, 0.16);
  transform: translateY(-1px);
}

.auth-modal .public-auth-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-modal .auth-tabs {
  gap: 4px;
  margin-bottom: 30px;
  padding: 5px;
  border: 1px solid #e1eae6;
  border-radius: 16px;
  background: #f5f8f7;
}

.auth-modal .auth-tabs button {
  min-height: 50px;
  border-radius: 12px;
  color: #7b8793;
  font-size: 15px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal .auth-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #27755f, #42ad8c);
  box-shadow: 0 9px 22px rgba(46, 125, 104, 0.24);
}

.auth-modal .auth-form {
  grid-template-columns: 1fr;
  gap: 18px;
}

.auth-modal .auth-form .field {
  gap: 9px;
}

.auth-modal .auth-form .field > label,
.auth-modal .auth-name-field > label {
  color: #273642;
  font-size: 14px;
  font-weight: 800;
}

.auth-input-shell,
.auth-modal .password-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(38, 63, 53, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input-shell:focus-within,
.auth-modal .password-field:focus-within {
  border-color: #70b59f;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(46, 125, 104, 0.11);
}

.auth-input-shell > .ui-icon,
.auth-modal .password-field > .ui-icon {
  width: 20px;
  height: 20px;
  margin-left: 17px;
  color: #718091;
}

.auth-input-shell input,
.auth-modal .password-field input {
  min-width: 0;
  min-height: 54px;
  border: 0;
  padding: 12px 15px;
  color: #1f2937;
  background: transparent;
  font-size: 15px;
  outline: 0;
}

.auth-input-shell input::placeholder,
.auth-modal .password-field input::placeholder {
  color: #98a3af;
}

.auth-name-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-name-inputs .auth-input-shell:last-child {
  grid-template-columns: minmax(0, 1fr);
}

.auth-modal .password-field .auth-eye-toggle {
  position: relative;
  width: 44px;
  min-height: 44px;
  margin: 0 6px 0 0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  color: #516271;
  background: transparent;
  font-size: 0;
}

.auth-modal .password-field .auth-eye-toggle::before {
  content: "";
  position: absolute;
  inset: 12px 8px;
  border: 1.8px solid currentColor;
  border-radius: 50% 12% / 65% 25%;
  transform: rotate(45deg);
}

.auth-modal .password-field .auth-eye-toggle::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.auth-modal .password-field .auth-eye-toggle:hover {
  color: #2e7d68;
  background: #edf7f3;
}

.auth-modal .auth-helper-link {
  justify-self: end;
  margin-top: 2px;
  color: #2e7d68;
  font-size: 13px;
  text-decoration: none;
}

.auth-modal .auth-helper-link:hover {
  text-decoration: underline;
}

.auth-modal .password-rules {
  gap: 6px;
  margin-top: 2px;
}

.auth-modal .password-rules span {
  border: 0;
  padding: 6px 9px;
  background: #f3f6f5;
  font-size: 10px;
}

.auth-modal .consent-row {
  gap: 11px;
  border: 0;
  padding: 2px 0;
  color: #687580;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
}

.auth-modal .consent-row input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 0;
}

.auth-modal .auth-submit-row {
  margin-top: 4px;
}

.auth-modal .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #26745e, #45b492);
  box-shadow: 0 14px 30px rgba(46, 125, 104, 0.25);
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-modal .auth-submit:hover {
  box-shadow: 0 17px 36px rgba(46, 125, 104, 0.32);
  transform: translateY(-1px);
}

.auth-modal .auth-submit .ui-icon {
  width: 21px;
  height: 21px;
}

.auth-footer-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid #e8eeeb;
  color: #687580;
  font-size: 14px;
}

.auth-footer-switch button {
  min-height: 0;
  padding: 0;
  color: #2e7d68;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.auth-footer-switch button:hover {
  text-decoration: underline;
}

.public-site > .page-section:last-child {
  margin-bottom: clamp(28px, 4vw, 52px);
}

@media (max-width: 620px) {
  .auth-modal-backdrop {
    align-items: start;
    padding: 10px;
  }

  .auth-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 20px;
  }

  .auth-modal .public-auth-section.auth-experience {
    padding: 28px 20px 24px;
  }

  .auth-modal .modal-close {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
  }

  .auth-modal .auth-heading {
    margin-bottom: 24px;
    padding-right: 24px;
  }

  .auth-modal .auth-heading h2 {
    max-width: 290px;
    margin-top: 15px;
    font-size: 29px;
  }

  .auth-badge {
    max-width: calc(100% - 36px);
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .auth-modal .auth-tabs {
    margin-bottom: 24px;
  }

  .auth-name-inputs {
    grid-template-columns: 1fr;
  }

  .auth-input-shell,
  .auth-modal .password-field {
    min-height: 54px;
  }

  .auth-modal .auth-form {
    gap: 16px;
  }

  .auth-footer-switch {
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
  }

  .public-site > .page-section:last-child {
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.public-site {
  min-height: 100vh;
  background: #f5f8f8;
}

