/* Newve Clinic — Auth page (login/register)
 * Extracted from newve-membership.php inline <style>
 */

body.newve-auth-page {
  --newve-auth-dark: #0d0d0d;
  --newve-auth-muted: #6b6b72;
  --newve-auth-line: #dedede;
  --newve-auth-gold: #8B7340;
  background: var(--newve-white, #fff);
  overflow-x: hidden;
}

body.newve-auth-page .newve-main {
  background: var(--newve-white, #fff);
}

body.newve-account-page {
  --newve-auth-dark: #0d0d0d;
  --newve-auth-muted: #6b6b72;
  --newve-auth-line: #dedede;
  --newve-auth-gold: #8B7340;
  background: var(--newve-white, #fff);
  overflow-x: hidden;
}

body.newve-account-page .newve-main {
  background: var(--newve-white, #fff);
}

body.newve-auth-page .elementor-107,
body.newve-auth-page .elementor-107 .newve-header-wrap,
body.newve-auth-page .elementor-107 .newve-header-wrap > .elementor-container {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
}

body.newve-auth-page .newve-header-wrap .elementor-widget-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.newve-auth-page .newve-page-hero {
  display: none;
}

body.newve-account-page .newve-section {
  padding: 30px 20px 72px;
}

body.newve-account-page .newve-section > .newve-container {
  max-width: 800px !important;
  margin: 0 auto;
}

body.newve-account-page .newve-page-body {
  margin: 0;
}

body.newve-account-page .newve-auth-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 42px 56px 46px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

body.newve-account-page .newve-auth-wrap,
body.newve-account-page .newve-auth-wrap * {
  box-sizing: border-box;
}

body.newve-auth-page .newve-section {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 34px 20px 72px;
}

body.newve-auth-page .newve-section > .newve-container {
  max-width: 520px !important;
  margin: 0 auto;
}

body.newve-auth-page .newve-page-body {
  margin: 0;
}

body.newve-auth-page .newve-auth-wrap {
  width: 100%;
  padding: 42px 56px 46px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

body.newve-auth-page .newve-auth-wrap,
body.newve-auth-page .newve-auth-wrap * {
  box-sizing: border-box;
}

body.newve-auth-page .newve-auth-eyebrow {
  margin: 0 0 10px;
  color: var(--newve-auth-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

body.newve-auth-page .newve-auth-title {
  margin: 0 0 20px;
  color: var(--newve-auth-dark);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

body.newve-auth-page .newve-auth-subtitle {
  margin: 0 0 28px;
  color: var(--newve-auth-dark);
  font-size: 17px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.newve-auth-page .newve-auth-card {
  display: grid;
  gap: 18px;
  margin: 0;
}

body.newve-auth-page .newve-auth-card p,
body.newve-auth-page .newve-auth-field p {
  margin: 0;
}

body.newve-auth-page .newve-auth-field,
body.newve-auth-page .newve-auth-card > p,
body.newve-auth-page .newve-auth-pw-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.newve-auth-page .newve-auth-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--newve-auth-dark);
  font-size: 14px;
  font-weight: 500;
}

body.newve-auth-page .newve-auth-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--newve-auth-line);
  border-radius: 999px;
  background: #fff;
  color: var(--newve-auth-dark);
  font-size: 16px;
  box-shadow: none;
  box-sizing: border-box;
}

body.newve-auth-page .newve-auth-input:focus {
  border-color: var(--newve-auth-dark);
  box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.08);
  outline: 0;
}

body.newve-auth-page .newve-auth-input:focus-visible,
body.newve-auth-page .newve-auth-submit:focus-visible,
body.newve-auth-page .newve-auth-google:focus-visible,
body.newve-auth-page .newve-auth-link:focus-visible {
  outline: 2px solid var(--newve-auth-dark);
  outline-offset: 2px;
}

body.newve-auth-page .newve-auth-pw-wrap {
  position: relative;
}

body.newve-auth-page .newve-auth-pw-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #5f5e69;
  color: #fff;
  font-size: 0;
  font-weight: 600;
  cursor: pointer;
}

body.newve-auth-page .newve-auth-pw-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012s3-7%2010-7%2010%207%2010%207-3%207-10%207S2%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E");
}

body.newve-auth-page .newve-auth-pw-toggle.is-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.88%209.88a3%203%200%201%200%204.24%204.24'/%3E%3Cpath%20d='M10.73%205.08A10.43%2010.43%200%200%201%2012%205c7%200%2010%207%2010%207a13.16%2013.16%200%200%201-1.67%202.68'/%3E%3Cpath%20d='M6.61%206.61A13.53%2013.53%200%200%200%202%2012s3%207%2010%207a9.74%209.74%200%200%200%205.39-1.61'/%3E%3Cline%20x1='2'%20y1='2'%20x2='22'%20y2='22'/%3E%3C/svg%3E");
}

body.newve-auth-page .newve-auth-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 0;
  color: var(--newve-auth-muted);
  font-size: 14px;
}

body.newve-auth-page .newve-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.newve-auth-page .newve-auth-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 4px;
}

body.newve-auth-page .newve-auth-link {
  color: var(--newve-auth-gold);
  text-decoration: none;
}

body.newve-auth-page .newve-auth-link:hover {
  text-decoration: underline;
}

body.newve-auth-page .newve-auth-submit,
body.newve-auth-page .newve-auth-google {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}

body.newve-auth-page .newve-auth-submit {
  border: 1px solid var(--newve-auth-dark);
  background: var(--newve-auth-dark);
  color: #fff;
  font-weight: 600;
}

body.newve-auth-page .newve-auth-submit:hover {
  background: transparent;
  color: var(--newve-auth-dark);
}

body.newve-auth-page .newve-auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--newve-auth-muted);
  font-size: 13px;
  font-weight: 600;
}

body.newve-auth-page .newve-auth-divider::before,
body.newve-auth-page .newve-auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--newve-auth-line);
}

body.newve-auth-page .newve-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--newve-auth-line);
  background: #fff;
  color: var(--newve-auth-dark);
  font-weight: 500;
  box-shadow: none;
}

body.newve-auth-page .newve-auth-google:hover {
  border-color: var(--newve-auth-dark);
}

body.newve-auth-page .newve-auth-google.is-disabled,
body.newve-auth-page .newve-auth-google:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

body.newve-auth-page .newve-auth-social,
body.newve-auth-page .newve-auth-social > div {
  width: 100%;
}

body.newve-auth-page .newve-auth-google svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

body.newve-auth-page .newve-auth-bottom {
  margin: 2px 0 0;
  text-align: center;
  color: var(--newve-auth-muted);
  font-size: 15px;
}

body.newve-account-page .newve-account-state {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

body.newve-account-page .newve-account-state__msg {
  margin: 0;
  color: var(--newve-auth-dark);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

body.newve-account-page .newve-account-state__sub {
  margin: 0;
  color: var(--newve-auth-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.newve-account-page .newve-account-state__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.newve-account-page .newve-account-state__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--newve-auth-line);
  border-radius: 12px;
  background: #fff;
}

body.newve-account-page .newve-account-state__label {
  color: var(--newve-auth-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.newve-account-page .newve-account-state__value {
  color: var(--newve-auth-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.newve-account-page .newve-account-state__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.newve-account-page .newve-account-state__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--newve-auth-dark);
  border-radius: 12px;
  color: var(--newve-auth-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  flex: 1 1 180px;
}

body.newve-account-page .newve-account-state__btn--primary {
  background: var(--newve-auth-dark);
  color: #fff;
}

body.newve-account-page .newve-account-state__btn--ghost {
  background: transparent;
}

body.newve-account-page .newve-account-state__btn:hover {
  background: var(--newve-auth-gold);
  border-color: var(--newve-auth-gold);
  color: #fff;
}

@media (max-width: 640px) {
  body.newve-auth-page .newve-page-hero {
    display: none;
  }

  body.newve-account-page .newve-section {
    padding: 18px 0 48px;
  }

  body.newve-account-page .newve-section > .newve-container {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
  }

  body.newve-account-page .newve-auth-wrap {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0;
    margin: 0 auto;
    padding: 28px 22px 30px;
    border-radius: 22px;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  body.newve-account-page .newve-account-state__grid,
  body.newve-account-page .newve-account-state__buttons {
    grid-template-columns: 1fr;
  }

  body.newve-account-page .newve-account-state__btn {
    flex-basis: 100%;
  }

  body.newve-auth-page .newve-section {
    min-height: calc(100vh - 92px);
    padding: 10px 0 48px;
  }

  body.newve-auth-page .newve-section > .newve-container {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
  }

  body.newve-auth-page .newve-page-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.newve-auth-page .newve-auth-wrap {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0;
    margin: 0 auto;
    padding: 28px 22px 30px;
    border-radius: 22px;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  body.newve-auth-page .newve-auth-subtitle,
  body.newve-auth-page .newve-auth-input,
  body.newve-auth-page .newve-auth-submit,
  body.newve-auth-page .newve-auth-google {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.newve-auth-page .newve-auth-title {
    font-size: 30px;
  }

  body.newve-auth-page .newve-auth-subtitle {
    font-size: 15px;
  }

  body.newve-auth-page .newve-auth-checkbox-row {
    align-items: flex-start;
    flex-direction: column;
  }

  body.newve-auth-page .newve-auth-pw-wrap .newve-auth-input {
    padding-right: 54px;
  }

  body.newve-auth-page .newve-auth-pw-toggle {
    right: 6px;
    min-width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.newve-auth-page .newve-auth-input,
  body.newve-auth-page .newve-auth-submit,
  body.newve-auth-page .newve-auth-google {
    transition: none !important;
  }
}
