/* Pyrk professional login/register landing page
   Inspired by the provided landing page mockup: full-screen fitness-style background,
   left green glass brand card, right coral/orange glass login/register card.
*/

:root {
  --pyrk-green: #00a881;
  --pyrk-green-dark: #007b63;
  --pyrk-coral: #db6654;
  --pyrk-coral-strong: #c95043;
  --pyrk-ink: #f8fafc;
  --pyrk-muted-light: rgba(255,255,255,.78);
}

html,
body.auth-page {
  min-height: 100%;
}

body.auth-page {
  margin: 0 !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(18px, 4vw, 52px) !important;
  color: #ffffff !important;
  background:
    radial-gradient(ellipse at 24% 7%, rgba(255,255,255,.15), transparent 24%),
    radial-gradient(ellipse at 82% 24%, rgba(219,102,84,.28), transparent 34%),
    radial-gradient(ellipse at 12% 78%, rgba(0,168,129,.24), transparent 42%),
    linear-gradient(115deg, rgba(2,20,34,.82), rgba(19,53,65,.66) 40%, rgba(4,26,43,.82)),
    linear-gradient(135deg, #102a3c, #1e5871 45%, #0b2637) !important;
  background-attachment: fixed !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(112deg, transparent 0 38%, rgba(255,255,255,.08) 38% 42%, transparent 42% 100%),
    radial-gradient(ellipse at 46% 47%, rgba(255,237,213,.18), transparent 24%),
    radial-gradient(ellipse at 58% 67%, rgba(255,255,255,.13), transparent 18%),
    linear-gradient(145deg, transparent 0 47%, rgba(235,121,96,.26) 48% 68%, transparent 69%),
    linear-gradient(25deg, transparent 0 28%, rgba(0,0,0,.22) 29% 31%, transparent 32%),
    radial-gradient(circle at 70% 74%, rgba(255,255,255,.10), transparent 22%);
  mix-blend-mode: soft-light;
  opacity: .9;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.50), transparent 42%, rgba(0,0,0,.28)),
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(0,0,0,.30) 100%);
}

body.auth-page .auth-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(1180px, 94vw) !important;
  min-height: min(760px, calc(100vh - 88px)) !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 0.88fr) minmax(430px, 0.94fr) !important;
  gap: clamp(34px, 7vw, 92px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(12px, 2.2vw, 24px) !important;
}

body.auth-page .hero-card,
body.auth-page .panel {
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow:
    0 34px 90px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
  backdrop-filter: blur(20px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.18) !important;
}

body.auth-page .hero-card {
  width: min(380px, 100%) !important;
  min-height: 440px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 30px !important;
  padding: clamp(34px, 5vw, 56px) 28px !important;
  border-radius: 34px !important;
  background:
    linear-gradient(145deg, rgba(0,170,132,.88), rgba(0,131,105,.80)),
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.24), transparent 36%) !important;
  color: #fff !important;
  text-align: center !important;
}

body.auth-page .hero-card .brand-badge {
  width: 82px !important;
  height: 82px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  color: #fff !important;
  font-size: .92rem !important;
  font-weight: 1000 !important;
  letter-spacing: .12em !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
}

body.auth-page .hero-card h1 {
  max-width: 300px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(2.15rem, 3.2vw, 3.45rem) !important;
  line-height: .96 !important;
  letter-spacing: -.065em !important;
  font-weight: 1000 !important;
  text-shadow: 0 7px 24px rgba(0,0,0,.16) !important;
}

body.auth-page .hero-card p {
  max-width: 320px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  font-style: italic !important;
}

.auth-brand-lockup {
  position: absolute;
  left: clamp(16px, 3vw, 30px);
  bottom: clamp(4px, 1.4vw, 18px);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.34));
}

.auth-brand-wordmark {
  display: block;
  color: #fff;
  font-size: clamp(3.15rem, 6vw, 5.05rem);
  line-height: .66;
  letter-spacing: -.105em;
  font-weight: 500;
  font-family: Georgia, "Times New Roman", serif;
  transform: translateY(1px);
}

.auth-brand-divider {
  width: 5px;
  height: clamp(40px, 4.2vw, 54px);
  margin: 0 2px 0 5px;
  align-self: flex-end;
  position: relative;
}

.auth-brand-divider::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 3px;
  height: 78%;
  border-radius: 99px;
  background: rgba(255,255,255,.94);
}

.auth-brand-divider::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.94);
}

.auth-brand-subcopy {
  display: block;
  padding-bottom: 4px;
  color: #fff;
  font-size: clamp(.63rem, .92vw, .82rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  font-weight: 1000;
  max-width: 112px;
}

body.auth-page .panel {
  width: min(455px, 100%) !important;
  max-width: 455px !important;
  max-height: min(820px, calc(100vh - 74px)) !important;
  overflow: auto !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(145deg, rgba(223,99,78,.82), rgba(185,78,63,.70)),
    radial-gradient(circle at 25% 0%, rgba(255,255,255,.22), transparent 30%) !important;
  color: #fff !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.45) transparent;
}

body.auth-page .panel::-webkit-scrollbar {
  width: 8px;
}

body.auth-page .panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.38);
  border-radius: 999px;
}

body.auth-page .panel h2 {
  margin: 0 0 14px !important;
  color: rgba(31,71,57,.95) !important;
  font-size: clamp(1.45rem, 2vw, 2rem) !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
  font-weight: 1000 !important;
}

body.auth-page .panel hr {
  margin: 20px 0 18px !important;
  border: 0 !important;
  height: 1px !important;
  background: rgba(255,255,255,.22) !important;
}

body.auth-page form {
  display: grid !important;
  gap: 10px !important;
}

body.auth-page #loginForm {
  grid-template-columns: 1fr !important;
}

body.auth-page input,
body.auth-page select,
body.auth-page textarea {
  min-height: 42px !important;
  width: 100% !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.94) !important;
  color: #172033 !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  font-size: .92rem !important;
}

body.auth-page input::placeholder,
body.auth-page textarea::placeholder {
  color: #b48a8c !important;
  font-weight: 800 !important;
}

body.auth-page input:focus,
body.auth-page select:focus,
body.auth-page textarea:focus {
  outline: 3px solid rgba(255,255,255,.22) !important;
  border-color: rgba(255,255,255,.92) !important;
  background: #fff !important;
}

body.auth-page textarea {
  min-height: 118px !important;
  resize: vertical !important;
}

body.auth-page .btn,
body.auth-page button.btn {
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #4169f3, #2f5ce3) !important;
  color: #fff !important;
  font-weight: 950 !important;
  box-shadow: 0 13px 28px rgba(47,92,227,.24) !important;
}

body.auth-page .btn:hover,
body.auth-page button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 32px rgba(47,92,227,.30) !important;
}

body.auth-page #loginForm .btn {
  width: max-content !important;
  min-width: 72px !important;
  min-height: 38px !important;
  padding-inline: 16px !important;
}

body.auth-page #registerForm.compact-form {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

body.auth-page .register-name-grid {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 10px !important;
}

body.auth-page #registerForm.compact-form > input[name="email"],
body.auth-page #registerForm.compact-form > .password-field-wrap,
body.auth-page #registerForm.compact-form > .birthday-field-wrap,
body.auth-page #registerForm.compact-form > textarea,
body.auth-page #registerForm.compact-form > .check,
body.auth-page #registerForm.compact-form > button,
body.auth-page #registerForm.compact-form > input[type="hidden"] {
  grid-column: 1 / -1 !important;
}

body.auth-page #registerForm.compact-form > select[name="gender"],
body.auth-page #registerForm.compact-form > input[name="emergency_contact_name"] {
  grid-column: span 1 !important;
}

body.auth-page .field-label {
  grid-column: 1 / -1 !important;
  color: rgba(31,71,57,.95) !important;
  font-size: 1.35rem !important;
  line-height: 1.05 !important;
  letter-spacing: -.055em !important;
  font-weight: 1000 !important;
}

body.auth-page .phone-combo {
  margin-top: 8px !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 9px !important;
}

body.auth-page .phone-combo select,
body.auth-page .phone-combo input {
  min-height: 42px !important;
}

body.auth-page .group-code-register-card {
  grid-column: 1 / -1 !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.36) !important;
  background: rgba(255,255,255,.92) !important;
  color: #172033 !important;
}

body.auth-page .group-code-register-card strong {
  color: #cc6a5c !important;
  font-size: .9rem !important;
}

body.auth-page .group-code-register-card small {
  color: #64748b !important;
  font-size: .72rem !important;
}

body.auth-page .group-code-register-card input {
  min-height: 38px !important;
  border-color: rgba(65,105,243,.45) !important;
}

body.auth-page .birthday-calendar-icon,
body.auth-page .password-toggle-btn {
  background: rgba(255,255,255,.72) !important;
  color: #4169f3 !important;
}

body.auth-page .password-toggle-btn {
  min-width: 54px !important;
  height: 30px !important;
  right: 8px !important;
  border-radius: 10px !important;
  font-size: .72rem !important;
}

body.auth-page .password-field-wrap input {
  padding-right: 72px !important;
}

body.auth-page .check {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(255,255,255,.78) !important;
  font-size: .78rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

body.auth-page .check input {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  accent-color: #4169f3 !important;
}

body.auth-page .notice {
  margin: 8px 0 0 !important;
  color: #fff !important;
  font-weight: 900 !important;
}

body.auth-page .notice.bad {
  color: #fff1f2 !important;
}

body.auth-page .notice.ok {
  color: #ecfdf3 !important;
}

@media (max-width: 1080px) {
  body.auth-page .auth-shell {
    grid-template-columns: 1fr !important;
    width: min(760px, 95vw) !important;
    min-height: auto !important;
    gap: 24px !important;
  }

  body.auth-page .hero-card {
    width: 100% !important;
    min-height: 260px !important;
  }

  body.auth-page .panel {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  .auth-brand-lockup,
  .auth-logo-image-lockup {
    display: none !important;
  }
}

@media (max-width: 680px) {
  body.auth-page {
    padding: 12px !important;
  }

  body.auth-page .hero-card {
    display: grid !important;
    min-height: 220px !important;
    border-radius: 28px !important;
  }

  body.auth-page .hero-card .brand-badge {
    width: 58px !important;
    height: 58px !important;
    border-radius: 20px !important;
  }

  body.auth-page .panel {
    border-radius: 28px !important;
    padding: 20px !important;
  }

  body.auth-page #registerForm.compact-form,
  body.auth-page .register-name-grid {
    grid-template-columns: 1fr !important;
  }

  body.auth-page #registerForm.compact-form > select[name="gender"],
  body.auth-page #registerForm.compact-form > input[name="emergency_contact_name"] {
    grid-column: 1 / -1 !important;
  }

  body.auth-page .phone-combo {
    grid-template-columns: 86px minmax(0,1fr) !important;
  }
}

@media (max-width: 430px) {
  body.auth-page .phone-combo {
    grid-template-columns: 1fr !important;
  }
}


/* Uploaded official Pyrk logo lockup, transparent PNG */
.auth-logo-image-lockup {
  position: absolute;
  left: clamp(18px, 3.2vw, 34px);
  bottom: clamp(8px, 1.7vw, 24px);
  width: clamp(210px, 24vw, 315px);
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.34));
}

.auth-logo-image-lockup img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
}

.auth-brand-wordmark,
.auth-brand-divider,
.auth-brand-subcopy {
  display: none !important;
}


/* White transparent official Pyrk logo inline with Create Account */
.auth-logo-image-lockup {
  display: none !important;
}

.auth-register-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 14px !important;
}

.auth-register-heading-row h2 {
  margin: 0 !important;
  flex: 0 0 auto;
}

.auth-register-inline-logo {
  display: block;
  width: clamp(128px, 12.8vw, 178px);
  max-width: 45%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
  opacity: .98;
}

@media (max-width: 520px) {
  .auth-register-heading-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .auth-register-inline-logo {
    max-width: 210px;
    width: 62%;
  }
}


/* FINAL landing logo placement: bottom-left like the provided PDF mockup */
.auth-register-heading-row,
.auth-register-inline-logo {
  display: none !important;
}

.auth-logo-image-lockup {
  position: absolute !important;
  left: clamp(22px, 3.5vw, 48px) !important;
  bottom: clamp(24px, 4.2vw, 72px) !important;
  width: clamp(245px, 24vw, 360px) !important;
  max-width: 36vw !important;
  height: auto !important;
  display: block !important;
  z-index: 3 !important;
  pointer-events: none !important;
  background: transparent !important;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.36)) !important;
}

.auth-logo-image-lockup img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.auth-brand-wordmark,
.auth-brand-divider,
.auth-brand-subcopy {
  display: none !important;
}

@media (max-width: 1080px) {
  .auth-logo-image-lockup {
    position: static !important;
    width: min(320px, 72vw) !important;
    max-width: 72vw !important;
    margin: 0 auto 8px !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }
}

@media (max-width: 680px) {
  .auth-logo-image-lockup {
    width: min(260px, 70vw) !important;
    margin-left: 4px !important;
  }
}
