/* Sign-in and registration page (pages/account.php).
   Fields and checkboxes look like the contact form on the home page; that look is owned by
   styles.css (.form-field input / .account-field input, .consent input / .account-checkbox input).
   This file only lays the page out. */
.account-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.account-page > .site-footer {
  flex-shrink: 0;
  margin-top: 0;
}

.account-landscape {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

/* The photo covers the window, not the block: switching between the shorter sign-in form
   and the longer registration form must not rescale or shift it. z-index -1 keeps it under
   the whole page, including the footer. */
.account-landscape::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-color: #ede2d4;
  background-image: linear-gradient(90deg, rgb(244 239 232 / 20%), rgb(244 239 232 / 38%)), url("../images/cabinet-wellness-background.png");
  background-position: center;
  background-size: cover;
  content: "";
}

.account-page .site-header {
  position: relative;
}

.account-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: 56px;
}

.account-heading {
  margin: 0 0 34px;
  text-align: center;
}

.account-heading h1 {
  margin: 0;
  color: #171612;
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1;
}

/* Thin frame like the contact form; a denser background keeps text readable over the photo. */
.account-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 34px 40px 30px;
  border: 1px solid rgba(25, 25, 21, .88);
  border-radius: 18px;
  background: rgb(252 250 246 / 62%);
  backdrop-filter: blur(6px);
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.account-tabs button {
  min-height: 48px;
  border: 1px solid rgba(25, 25, 21, .9);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.account-tabs button[aria-selected="true"] {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.account-panel[hidden] {
  display: none;
}

.account-form,
.account-form-grid {
  display: grid;
  gap: 12px;
}

.account-field {
  display: block;
}

.account-password {
  position: relative;
  display: block;
}

.account-password input {
  padding-right: 104px;
}

.account-password button {
  position: absolute;
  top: 50%;
  right: 22px;
  padding: 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transform: translateY(-50%);
}

.account-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 4px 0;
}

.account-checkbox {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}

.account-consent {
  align-items: flex-start;
  margin: 0 4px;
  font-size: 14px;
}

.account-options a,
.account-checkbox a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-options a {
  font-size: 14px;
}

.account-submit {
  width: min(334px, 100%);
  min-height: 55px;
  justify-self: center;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
}

.account-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 721px) {
  .account-page {
    --header-height: 104px;
    --header-scrolled-height: 62px;
  }

  .account-page .site-header {
    height: var(--header-height);
    background: transparent;
  }
}

@media (max-width: 720px) {
  .account-landscape::before {
    background-position: 42% center;
  }

  .account-main {
    width: min(100% - 28px, 560px);
    padding-bottom: 36px;
  }

  .account-heading {
    margin-bottom: 24px;
  }

  .account-heading h1 {
    font-size: 34px;
  }

  .account-card {
    padding: 24px 18px 26px;
  }

  .account-tabs {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .account-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
