/*!
 * UI Design & Front-End Architecture by Woomark Studio
 * Exclusive theme developed for synergyo2.com
 * Account pages: account.html (sign in) + join.html (create account). Loaded after styles.css.
 */
.account-page,
.join-page {
  --err: #c0392b;
  --ok: #3f8a00;
  --field-h: 52px;
  background: var(--mist);
}

/* ============ SHARED · TYPE ============ */
.acc-title {
  font: 700 clamp(2rem, 3.6vw, 2.9rem) / 1.08 var(--head);
  letter-spacing: -0.045em;
  color: var(--navy);
  margin: 14px 0 12px;
}
.acc-title:focus {
  outline: none;
}
.acc-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--blue2);
}
.acc-sub {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 520px;
}
.acc-switch {
  margin: 24px 0 0;
  font-size: 0.92rem;
  text-align: center;
}
.acc-switch a,
.legal-note a,
.side-secure a {
  color: var(--blue2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue2);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-block {
  width: 100%;
  min-height: 54px;
}

/* ============ SHARED · FIELDS ============ */
.acc-form .field {
  margin-bottom: 18px;
}
.field label,
.field-row label {
  display: block;
  font: 600 0.86rem/1.3 var(--head);
  color: var(--ink);
  margin-bottom: 7px;
}
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.opt {
  font-weight: 400;
  color: var(--muted);
}
.acc-form input[type="text"],
.acc-form input[type="email"],
.acc-form input[type="password"],
.acc-form input[type="tel"],
.acc-form input[type="url"],
.acc-form input[type="date"],
.acc-form select {
  width: 100%;
  height: var(--field-h);
  padding: 0 16px;
  font-size: 16px; /* 16px: iOS doesn't zoom */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cfdcea;
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.acc-form select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2363758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.acc-form input:hover,
.acc-form select:hover {
  border-color: #b3c6dc;
}
.acc-form input:focus,
.acc-form select:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 4px rgba(31, 111, 214, 0.14);
}
.acc-form [aria-invalid="true"] {
  border-color: var(--err) !important;
}
.acc-form [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.14);
}
.field-msg {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--err);
  min-height: 0;
}
.field-msg:empty {
  display: none;
}
.field-msg::before {
  content: "\f06a"; /* circle-exclamation */
  font: var(--fa-font-solid);
  margin-right: 6px;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field-trio {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0 16px;
}

/* Password */
.pass-wrap {
  position: relative;
}
.pass-wrap input {
  padding-right: 54px !important;
}
.pass-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.pass-toggle:hover {
  color: var(--blue2);
}
.pass-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.pass-rules li i {
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e3ebf4;
  color: transparent;
  margin-right: 4px;
  transition:
    background 0.2s,
    color 0.2s;
}
.pass-rules li.ok {
  color: var(--ok);
}
.pass-rules li.ok i {
  background: var(--ok);
  color: #fff;
}

/* Checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  margin: 4px 0 14px;
}
.check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue2);
  cursor: pointer;
}
.check a {
  color: var(--blue2);
  font-weight: 600;
  text-decoration: underline;
}
.check.is-invalid span {
  color: var(--err);
}

/* Alerts / notes */
.form-alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecea;
  color: var(--err);
  font-size: 0.88rem;
}
.note-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.5;
}
.note-box i {
  color: var(--blue2);
  margin-top: 3px;
}
.acc-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue2);
  font-size: 1.5rem;
}
.acc-icon.is-ok {
  background: var(--green);
  color: #fff;
}
.back-link,
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--muted);
  font: 700 0.78rem var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.back-link:hover,
.btn-back:hover {
  color: var(--navy);
}

/* ============ ACCOUNT.HTML · SIGN IN ============ */
.acc {
  padding: 56px 0 88px;
}
.acc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
.acc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 20px 50px rgba(6, 23, 51, 0.06);
}
.acc-view {
  max-width: 440px;
  margin-inline: auto;
}
.acc-view .acc-icon {
  margin-bottom: 8px;
}
.acc-join {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}
.acc-join .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-join::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 51, 0.05) 20%, rgba(6, 23, 51, 0.92) 72%);
}
.acc-join-body {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 48px);
}
.acc-join .eyebrow {
  color: var(--cyan);
}
.acc-join h2 {
  font: 700 clamp(1.9rem, 3vw, 2.5rem) / 1.08 var(--head);
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
}
.acc-join h2 em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cyan);
}
.acc-join p {
  color: #c9d7e8;
  margin-bottom: 18px;
}
.acc-perks {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 0.92rem;
  color: #e6eef8;
}
.acc-perks i {
  color: var(--green);
  margin-right: 8px;
}

/* ============ JOIN.HTML · CREATE ACCOUNT ============ */
.join {
  padding: 48px 0 88px;
}
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.join-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 52px);
  box-shadow: 0 20px 50px rgba(6, 23, 51, 0.06);
}
.join-form {
  max-width: 640px;
}

/* Progress */
.join-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 36px;
  max-width: 640px;
}
.join-progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 3px solid #e1e9f2;
  font: 600 0.8rem var(--head);
  color: var(--muted);
  transition:
    border-color 0.3s,
    color 0.3s;
}
.jp-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8eff7;
  font-size: 0.75rem;
  color: var(--muted);
  transition: background 0.3s;
}
.join-progress li[aria-current="step"] {
  border-color: var(--blue2);
  color: var(--navy);
}
.join-progress li[aria-current="step"] .jp-num {
  background: var(--blue2);
  color: #fff;
}
.join-progress li.done {
  border-color: var(--green);
  color: var(--navy);
}
.join-progress li.done .jp-num {
  background: var(--green);
  color: transparent;
  position: relative;
}
.join-progress li.done .jp-num::after {
  content: "\f00c";
  font: var(--fa-font-solid);
  color: #fff;
  position: absolute;
  font-size: 0.7rem;
}
.join-progress.is-hidden {
  display: none;
}

/* Steps */
.join-step:not([hidden]) {
  animation: stepIn 0.4s var(--ease) both;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.step-actions .btn {
  min-height: 54px;
  min-width: 200px;
}
.step-actions .btn-block {
  width: 100%;
}
.invited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 40px;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.85rem;
}
.invited i {
  color: var(--blue2);
}

/* Account type cards */
.type-list {
  display: grid;
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 0;
}
.type-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1.5px solid #d6e2ef;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.type-card:hover {
  border-color: #a9c3e2;
}
.type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-card:has(input:focus-visible) {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}
.type-card:has(input:checked) {
  border-color: var(--blue2);
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(31, 111, 214, 0.12);
}
.type-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ice);
  color: var(--blue2);
  font-size: 1.1rem;
}
.type-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.type-head strong {
  font: 700 1.08rem var(--head);
  color: var(--navy);
}
.type-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef6dc;
  color: #4d6a00;
  font: 700 0.68rem var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.type-desc {
  display: block;
  margin: 4px 0 10px;
  font-size: 0.92rem;
  color: var(--text);
}
.type-perks {
  display: grid;
  gap: 5px;
  font-size: 0.86rem;
  color: var(--text);
}
.type-perks i {
  color: var(--green);
  margin-right: 8px;
  font-size: 0.78rem;
}
.type-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #b9cbe0;
  margin-top: 12px;
  transition:
    border 0.2s,
    background 0.2s;
}
.type-card:has(input:checked) .type-radio {
  border: 7px solid var(--blue2);
}
.type-list + .field-msg {
  margin-top: 10px;
}

/* Form groups */
.form-group {
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.form-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.group-title {
  font: 700 1rem var(--head);
  color: var(--navy);
  margin: 0 0 16px;
}
.person-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 0.9rem;
  margin: 0 0 18px;
}
.person-line > i {
  color: var(--blue2);
}
.person-line .text-link {
  margin-left: auto;
}

/* Welcome */
.join-done {
  text-align: center;
  padding: 20px 0;
}
.join-done .acc-icon {
  margin: 0 auto 10px;
  width: 76px;
  height: 76px;
  font-size: 1.8rem;
}
.join-done .acc-sub {
  margin-inline: auto;
}
.done-mail {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 0.88rem;
  max-width: 520px;
}
.done-mail i {
  color: var(--blue2);
  margin-top: 4px;
}
.done-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Side panel */
.join-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}
/* Help box: same look as the floating help panel (styles.css .help-head / .help-list / .help-foot), static */
.side-help {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(6, 23, 51, 0.06);
}
.side-help .help-head {
  padding: 22px;
}
.side-secure {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  padding: 0 8px;
}
.side-secure i {
  margin-right: 6px;
}

/* Country (first field of step 3) */
.field-country {
  max-width: 320px;
}

/* ============ JOIN · FOCUS MODE (steps 2–3) ============
   body.join-focus is set by account.js: header = logo + "Secure sign-up", short footer (copyright + policies). */
.focus-note {
  display: none;
}
.join-focus .topline,
.join-focus .header .nav,
.join-focus .header-actions {
  display: none !important;
}
.join-focus .focus-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font: 600 0.82rem var(--head);
  color: var(--muted);
}
.join-focus .focus-note i {
  color: var(--green);
}
.join-focus .footer {
  padding: 28px 0;
}
.join-focus .footer-grid,
.join-focus .footer-word {
  display: none;
}
.join-focus .footer-bottom {
  border-top: 0;
  padding-top: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .join-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }
}
@media (max-width: 940px) {
  .acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .acc-join {
    min-height: 420px;
  }
  .join-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .join-side {
    position: static;
  }
}
@media (max-width: 620px) {
  .acc,
  .join {
    padding: 20px 0 56px;
  }
  .wrap.acc-grid,
  .wrap.join-grid {
    width: calc(100% - 24px);
  }
  .acc-card,
  .join-main {
    border-radius: 20px;
    padding: 24px 18px;
  }
  .acc-join {
    min-height: 380px;
    border-radius: 20px;
  }
  .field-pair,
  .field-trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .field-country {
    max-width: none;
  }
  .join-progress {
    margin-bottom: 26px;
  }
  .jp-label {
    font-size: 0.72rem;
    line-height: 1.2;
  }
  .join-progress li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .type-card {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 16px;
  }
  .type-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .step-actions .btn {
    min-width: 0;
    flex: 1;
  }
  .done-ctas .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .join-step:not([hidden]) {
    animation: none;
  }
}
