@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* =====================================================
   TTB Login Page Stylesheet
   Modern, calm, distraction-free sign-in surface.
   Aligned with TTB Design System v1.3.0 & Login.dc.html
   ===================================================== */

/* Global body styling for login surface */
body.ttb-login-surface,
body.mepr-guest-layout,
body.page-template-login-page,
body.page-template-page-login,
body.page-id-2551,
body:has(.ttb-login-view) {
  background-color: var(--ttb-warm-paper, #F4EFE3) !important;
  color: var(--ttb-charcoal, #30352F);
  font-family: var(--ttb-font-body, 'Noto Sans', system-ui, sans-serif);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Hide standard site navigation header and ecosystem footer on login surface */
body.ttb-login-surface header.wp-block-template-part,
body.ttb-login-surface .wp-block-navigation,
body.ttb-login-surface footer.wp-block-template-part,
body.ttb-login-surface .ttb-ecosystem-footer,
body.ttb-login-surface > .wp-site-blocks > header,
body.ttb-login-surface > .wp-site-blocks > footer,
body.page-template-login-page header.wp-block-template-part,
body.page-template-login-page footer.wp-block-template-part,
body.page-template-page-login header.wp-block-template-part,
body.page-template-page-login footer.wp-block-template-part,
body.page-id-2551 header.wp-block-template-part,
body.page-id-2551 footer.wp-block-template-part,
body.page-id-2551 .wp-block-navigation,
body.page-id-2551 .ttb-ecosystem-footer,
body.page-id-2551 > .wp-site-blocks > header,
body.page-id-2551 > .wp-site-blocks > footer,
body:has(.ttb-login-view) header.wp-block-template-part,
body:has(.ttb-login-view) footer.wp-block-template-part,
body:has(.ttb-login-view) .wp-block-navigation,
body:has(.ttb-login-view) .ttb-ecosystem-footer,
body:has(.ttb-login-view) > .wp-site-blocks > header,
body:has(.ttb-login-view) > .wp-site-blocks > footer {
  display: none !important;
}

/* =====================================================
   Standalone Layout (.ttb-login-view)
   ===================================================== */
.ttb-login-view {
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--ttb-warm-paper, #F4EFE3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(40px, 6vw, 56px) 24px clamp(48px, 6vw, 64px);
  gap: 40px;
  font-family: var(--ttb-font-body, 'Noto Sans', system-ui, sans-serif);
  color: var(--ttb-charcoal, #30352F);
  width: 100%;
}

.ttb-login-view a {
  color: var(--ttb-forest, #2E4936);
  transition: color 0.18s ease;
}

.ttb-login-view a:hover {
  color: var(--ttb-moss, #6F8263);
}

/* Top Branding Header */
.ttb-login-view__header {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ttb-login-view__logo-link {
  display: inline-block;
  text-decoration: none;
}

.ttb-login-view__logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Centered Form Card */
.ttb-login-view__card {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(48, 53, 47, 0.14);
  border-radius: var(--ttb-radius-lg, 24px);
  padding: clamp(32px, 5vw, 44px) clamp(24px, 5vw, 40px) 40px;
  box-shadow: 0 8px 24px rgba(46, 73, 54, 0.03);
}

.ttb-login-view__card-header {
  text-align: center;
  margin-bottom: 32px;
}

.ttb-login-view__eyebrow {
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ttb-moss, #6F8263);
  margin-bottom: 12px;
}

.ttb-login-view__title {
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: clamp(28px, 4vw, 32px);
  line-height: var(--ttb-leading-tight, 1.2);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ttb-forest, #2E4936);
  margin: 0;
}

.ttb-login-view__subtitle {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  color: var(--ttb-charcoal, #30352F);
}

/* Form Fields */
.ttb-login-view__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ttb-login-view__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ttb-login-view__label {
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ttb-forest, #2E4936);
}

.ttb-login-view__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ttb-forest, #2E4936);
}

.ttb-login-view__forgot {
  font-family: var(--ttb-font-body, 'Noto Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--ttb-forest, #2E4936);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ttb-login-view__input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid rgba(48, 53, 47, 0.28);
  border-radius: var(--ttb-radius-md, 14px);
  background: #ffffff;
  font-family: var(--ttb-font-body, 'Noto Sans', system-ui, sans-serif);
  font-size: 16px;
  color: var(--ttb-charcoal, #30352F);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ttb-login-view__input:focus {
  border-color: var(--ttb-forest, #2E4936);
  box-shadow: 0 0 0 3px rgba(46, 73, 54, 0.14);
}

.ttb-login-view__input::placeholder {
  color: #6B7068;
}

.ttb-login-view__pw-wrap {
  position: relative;
  width: 100%;
}

.ttb-login-view__input--pw {
  padding-right: 76px;
}

.ttb-login-view__toggle-pw {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ttb-forest, #2E4936);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.ttb-login-view__toggle-pw:hover {
  background: rgba(46, 73, 54, 0.08);
}

.ttb-login-view__submit {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: none;
  border-radius: 9999px;
  background: var(--ttb-forest, #2E4936);
  color: #ffffff;
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 73, 54, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ttb-login-view__submit:hover {
  background: #233729;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 73, 54, 0.25);
}

.ttb-login-view__submit:active {
  transform: translateY(0);
}

/* Works Across Ecosystem Section */
.ttb-login-view__ecosystem {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ttb-login-view__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ttb-moss, #6F8263);
}

.ttb-login-view__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(46, 73, 54, 0.15);
}

.ttb-login-view__divider-text {
  white-space: nowrap;
}

.ttb-login-view__brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
}

.ttb-login-view__brand-link {
  display: flex;
  align-items: center;
  opacity: 0.92;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ttb-login-view__brand-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.ttb-login-view__brand-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.ttb-login-view__brand-img--sitspot {
  height: 76px;
}

.ttb-login-view__brand-img--silenttrails {
  height: 52px;
}

.ttb-login-view__brand-img--sgr {
  height: 72px;
}

/* Bottom Disclaimer */
.ttb-login-view__disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ttb-charcoal, #30352F);
  text-align: center;
  max-width: 440px;
}

/* =====================================================
   MemberPress ReadyLaunch Overrides (Production)
   Bring ReadyLaunch guest layout in line with Login.dc.html
   ===================================================== */
body.mepr-guest-layout #page.site.guest-layout {
  background: var(--ttb-warm-paper, #F4EFE3) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 24px 64px;
  box-sizing: border-box;
}

body.mepr-guest-layout header#masthead.site-header {
  background: transparent !important;
  border: none !important;
  padding: 0 0 32px !important;
  margin: 0 !important;
}

body.mepr-guest-layout header#masthead .site-branding img.site-logo {
  height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
}

body.mepr-guest-layout main#primary.site-main {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

body.mepr-guest-layout #mepro-login-hero {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.mepr-guest-layout #mepro-login-hero .mepro-boxed {
  background: #ffffff !important;
  border: 1px solid rgba(48, 53, 47, 0.14) !important;
  border-radius: var(--ttb-radius-lg, 24px) !important;
  padding: clamp(32px, 5vw, 44px) clamp(24px, 5vw, 40px) 40px !important;
  box-shadow: 0 8px 24px rgba(46, 73, 54, 0.03) !important;
  width: 100% !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
}

body.mepr-guest-layout #mepr_loginform h1 {
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif) !important;
  font-size: clamp(28px, 4vw, 32px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--ttb-forest, #2E4936) !important;
  margin: 0 0 12px 0 !important;
  text-align: center;
}

body.mepr-guest-layout #mepr_loginform .mp-form-label label {
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ttb-forest, #2E4936) !important;
}

body.mepr-guest-layout #mepr_loginform input[type="text"],
body.mepr-guest-layout #mepr_loginform input[type="password"] {
  height: 48px !important;
  padding: 0 16px !important;
  border: 1.5px solid rgba(48, 53, 47, 0.28) !important;
  border-radius: var(--ttb-radius-md, 14px) !important;
  background: #ffffff !important;
  font-size: 16px !important;
  color: var(--ttb-charcoal, #30352F) !important;
  outline: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.mepr-guest-layout #mepr_loginform input[type="text"]:focus,
body.mepr-guest-layout #mepr_loginform input[type="password"]:focus {
  border-color: var(--ttb-forest, #2E4936) !important;
  box-shadow: 0 0 0 3px rgba(46, 73, 54, 0.14) !important;
}

body.mepr-guest-layout #mepr_loginform .submit input[type="submit"] {
  height: 52px !important;
  width: 100% !important;
  border-radius: 9999px !important;
  background: var(--ttb-forest, #2E4936) !important;
  color: #ffffff !important;
  font-family: var(--ttb-font-headings, 'Inter', system-ui, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(46, 73, 54, 0.15) !important;
  border: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.mepr-guest-layout #mepr_loginform .submit input[type="submit"]:hover {
  background: #233729 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(46, 73, 54, 0.25) !important;
}

body.mepr-guest-layout .mepr-login-actions a {
  color: var(--ttb-forest, #2E4936) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.16em !important;
  font-size: 13px !important;
}

body.mepr-guest-layout .mepr-login-actions a:hover {
  color: var(--ttb-moss, #6F8263) !important;
}

/* Hide legacy ReadyLaunch image footer widget */
body.mepr-guest-layout .mepro-login-widget,
body.mepr-guest-layout #mepr-rl-login-footer-widget {
  display: none !important;
}

@media (max-width: 540px) {
  .ttb-login-view__brands {
    gap: 24px 32px;
  }
  .ttb-login-view__brand-img--sitspot {
    height: 60px;
  }
  .ttb-login-view__brand-img--silenttrails {
    height: 42px;
  }
  .ttb-login-view__brand-img--sgr {
    height: 56px;
  }
}
