/* Thimago landing/auth. Scope: public landing only. */
body.index-body {
  padding-top: 0 !important;
  overflow-x: hidden;
  background: #fff !important;
}

body.index-body .main-header,
body.index-body .main-footer {
  display: none !important;
}

body.index-body.th-auth-lock {
  overflow: hidden;
}

.th-auth-page,
.th-auth-page * {
  box-sizing: border-box;
}

.th-auth-page {
  --th-red: #e60023;
  --th-red-dark: #ad081b;
  --th-blue: #1877f2;
  --th-ink: #111;
  --th-muted: #5f6368;
  --th-line: #dadce0;
  --th-soft: #f7f7f4;
  min-height: 100vh;
  color: var(--th-ink);
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

.th-auth-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.th-auth-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
}

.th-auth-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.th-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--th-red);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.th-auth-brand:hover {
  color: var(--th-red);
  text-decoration: none;
}

.th-auth-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--th-red);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.th-auth-nav-links,
.th-auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.th-auth-nav-links a {
  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.th-auth-nav-links a:hover {
  text-decoration: underline;
}

.th-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.th-auth-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.th-auth-btn-primary {
  color: #fff;
  background: var(--th-red);
  box-shadow: 0 10px 24px rgba(230, 0, 35, 0.18);
}

.th-auth-btn-primary:hover {
  color: #fff;
  background: var(--th-red-dark);
}

.th-auth-btn-soft {
  color: #111;
  background: #efefef;
}

.th-auth-btn-soft:hover {
  color: #111;
  background: #e2e2e2;
}

.th-auth-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 5vw, 86px);
  min-height: calc(100vh - 72px);
  padding: 48px 0 64px;
}

.th-auth-hero-copy {
  position: relative;
  z-index: 2;
}

.th-auth-hero-copy h1 {
  max-width: 520px;
  margin: 0 0 22px;
  color: #111;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.th-auth-hero-copy .th-auth-blue {
  color: var(--th-blue);
}

.th-auth-hero-copy p {
  max-width: 440px;
  margin: 0 0 26px;
  color: #242424;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.th-auth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.th-auth-collage {
  position: relative;
  min-height: 500px;
}

.th-auth-pin {
  position: absolute;
  overflow: hidden;
  background: var(--th-soft);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.12);
}

.th-auth-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-auth-pin-main {
  left: 27%;
  top: 5%;
  width: 245px;
  height: 355px;
  z-index: 4;
  border-radius: 30px;
}

.th-auth-pin-left {
  left: 7%;
  top: 23%;
  width: 212px;
  height: 190px;
  z-index: 3;
}

.th-auth-pin-small {
  left: 18%;
  top: 58%;
  width: 160px;
  height: 180px;
  z-index: 5;
  border-radius: 24px;
}

.th-auth-pin-avatar {
  left: 43%;
  top: 66%;
  width: 132px;
  height: 132px;
  z-index: 6;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.th-auth-bubble {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.th-auth-bubble-smile {
  left: 0;
  top: 16%;
  width: 58px;
  height: 58px;
  background: #ffdc4a;
  font-size: 28px;
}

.th-auth-bubble-heart {
  right: 10%;
  top: 50%;
  width: 70px;
  height: 70px;
  color: #fff;
  background: #ef2f63;
  font-size: 38px;
}

.th-auth-time {
  position: absolute;
  right: 12%;
  top: 14%;
  z-index: 8;
  padding: 9px 14px;
  color: #fff;
  background: #7057ff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(112, 87, 255, 0.18);
}

.th-auth-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 2px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

.th-auth-scroll-cue:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--th-red);
  border-radius: 999px;
  animation: thAuthScroll 1.7s ease-in-out infinite;
}

@keyframes thAuthScroll {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(10px); opacity: 1; }
}

.th-auth-section {
  padding: 82px 0;
  background: #fff;
}

.th-auth-section-title {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.th-auth-section-title h2 {
  margin: 0 0 12px;
  color: #211922;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.th-auth-section-title p {
  margin: 0;
  color: #333;
  font-size: 17px;
  line-height: 1.45;
}

.th-auth-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.th-auth-feature {
  padding: 26px;
  background: #f7f7f2;
  border-radius: 34px;
}

.th-auth-feature-media {
  display: grid;
  place-items: center;
  min-height: 235px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #eeeee9;
  border-radius: 26px;
}

.th-auth-feature-media img {
  width: 82%;
  max-height: 210px;
  object-fit: contain;
}

.th-auth-feature h3 {
  margin: 0 0 8px;
  color: #211922;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.th-auth-feature p {
  margin: 0;
  color: #423a43;
  font-size: 14px;
  line-height: 1.45;
}

.th-auth-register-band {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #0b0b0b;
}

.th-auth-register-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  opacity: 0.58;
  filter: saturate(0.9);
}

.th-auth-register-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.th-auth-register-band:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
}

.th-auth-register-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 560px;
}

.th-auth-register-content h2 {
  max-width: 430px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.th-auth-footer {
  padding: 48px 0;
  color: #fff;
  background: #000;
}

.th-auth-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.th-auth-footer .th-auth-brand {
  color: #fff;
}

.th-auth-footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 28px;
}

.th-auth-footer-links a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  text-decoration: none;
}

.th-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.th-auth-page.is-auth-open .th-auth-modal {
  display: flex;
}

.th-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.th-auth-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 300px;
  width: min(700px, 100%);
  max-height: min(92vh, 760px);
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.th-auth-page.is-auth-signup .th-auth-dialog {
  grid-template-columns: minmax(320px, 436px);
  width: min(436px, 100%);
}

.th-auth-page.is-auth-signup .th-auth-dialog-side {
  display: none;
}

.th-auth-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.th-auth-dialog-main {
  min-width: 0;
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 42px 22px 24px;
}

.th-auth-dialog-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: #f6f6f3;
  border-radius: 22px;
}

.th-auth-qr {
  width: 130px;
  height: 130px;
  margin-bottom: 20px;
  border: 10px solid #fff;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 26px 26px,
    linear-gradient(#111 12px, transparent 12px) 0 0 / 26px 26px,
    #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.th-auth-dialog-side h3 {
  margin: 0 0 10px;
  color: #111;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
}

.th-auth-dialog-side p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}

.th-auth-page .fr_auth_form {
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.th-auth-page .fr_welcome_title {
  color: #111;
  font-size: 25px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

.th-auth-page .fr_welcome_field {
  position: relative;
  margin-bottom: 10px;
}

.th-auth-page .fr_welcome_field input,
.th-auth-page .fr_welcome_field select,
.th-auth-page .form-control,
.th-auth-page .form-select {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 42px 0 14px !important;
  color: #111 !important;
  background: #fff !important;
  border: 1px solid #b6b6b6 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.th-auth-page .fr_welcome_field input:focus,
.th-auth-page .fr_welcome_field select:focus,
.th-auth-page .form-control:focus,
.th-auth-page .form-select:focus {
  border-color: #111 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.12) !important;
}

.th-auth-page .fr_welcome_field svg {
  top: 11px !important;
  left: auto !important;
  right: 12px !important;
  width: 20px !important;
  height: 20px !important;
  color: #111 !important;
  opacity: 0.85;
}

.th-auth-page .js_toggle-password {
  width: 42px !important;
  height: 44px !important;
}

.th-auth-page .js_toggle-password svg {
  right: 12px !important;
}

.th-auth-page .btn-primary,
.th-auth-page .fr_welcome_btn {
  height: 42px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: var(--th-red) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.th-auth-page .btn-primary:hover,
.th-auth-page .fr_welcome_btn:hover {
  background: var(--th-red-dark) !important;
}

.th-auth-page .fr_welcome_switch,
.th-auth-page .form-check-label,
.th-auth-page .form-check-label a {
  color: #111 !important;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.th-auth-page .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 14px;
  padding-left: 0;
}

.th-auth-page .form-check-input {
  position: static;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.th-auth-page .alert-danger,
.th-auth-page .alert-warning {
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.th-auth-page .alert-danger {
  color: #9f1022;
  background: #ffebee;
}

.th-auth-page .alert-warning {
  color: #684100;
  background: #fff8dc;
}

.th-auth-page.is-auth-signup .js_hidden-section.x-hidden {
  display: block !important;
  visibility: visible !important;
}

.th-auth-legal {
  max-width: 330px;
  margin: 14px auto 0;
  color: #565656;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.th-auth-legal a {
  color: #565656;
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .th-auth-nav-links {
    display: none;
  }

  .th-auth-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
    text-align: center;
  }

  .th-auth-hero-copy {
    order: 2;
  }

  .th-auth-hero-copy h1,
  .th-auth-hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .th-auth-hero-actions {
    justify-content: center;
  }

  .th-auth-collage {
    order: 1;
    min-height: 360px;
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }

  .th-auth-features {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .th-auth-shell {
    width: min(100% - 28px, 560px);
  }

  .th-auth-nav-inner {
    min-height: 64px;
  }

  .th-auth-brand span:last-child,
  .th-auth-nav-actions .th-auth-btn-soft {
    display: none;
  }

  .th-auth-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .th-auth-hero {
    min-height: auto;
    padding-bottom: 46px;
  }

  .th-auth-hero-copy h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.04;
  }

  .th-auth-hero-copy p {
    font-size: 15px;
  }

  .th-auth-collage {
    min-height: 300px;
  }

  .th-auth-pin-main {
    left: 32%;
    width: 176px;
    height: 258px;
  }

  .th-auth-pin-left {
    left: 4%;
    top: 24%;
    width: 158px;
    height: 144px;
  }

  .th-auth-pin-small {
    left: 20%;
    top: 58%;
    width: 126px;
    height: 132px;
  }

  .th-auth-pin-avatar {
    left: 48%;
    top: 67%;
    width: 92px;
    height: 92px;
    border-width: 4px;
  }

  .th-auth-bubble-smile {
    left: 4%;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .th-auth-bubble-heart {
    right: 8%;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .th-auth-time {
    right: 8%;
    font-size: 12px;
  }

  .th-auth-section {
    padding: 52px 0;
  }

  .th-auth-register-bg {
    grid-template-columns: repeat(4, 1fr);
  }

  .th-auth-register-band,
  .th-auth-register-content {
    min-height: 390px;
  }

  .th-auth-footer-inner {
    flex-direction: column;
  }

  .th-auth-footer-links {
    grid-template-columns: repeat(2, auto);
  }

  .th-auth-modal {
    align-items: flex-start;
    padding: 12px;
    overflow: auto;
  }

  .th-auth-dialog,
  .th-auth-page.is-auth-signup .th-auth-dialog {
    display: block;
    width: min(436px, 100%);
    max-height: none;
    border-radius: 24px;
  }

  .th-auth-dialog-main {
    max-height: none;
    padding: 42px 18px 20px;
  }

  .th-auth-dialog-side {
    display: none;
  }
}

@media (max-width: 420px) {
  .th-auth-nav-actions .th-auth-btn-primary {
    padding: 0 12px;
  }

  .th-auth-collage {
    min-height: 270px;
  }

  .th-auth-hero-copy h1 {
    font-size: clamp(32px, 12vw, 46px);
  }
}

/* Thimago auth responsive hardening 2026.
   Scope: public landing, signin/signup pages and auth popups only. */
html,
body.visitor,
body.index-body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.visitor *,
body.index-body * {
  box-sizing: border-box;
}

body.index-body .main-wrapper,
body.index-body .th-pin-page,
body.index-body .th-auth-page {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.th-pin-page,
.th-pin-page main,
.th-pin-page section,
.th-pin-page header,
.th-pin-page footer,
.th-auth-page,
.th-auth-page main,
.th-auth-page section,
.th-auth-page header,
.th-auth-page footer {
  max-width: 100vw !important;
}

.th-pin-shell,
.th-auth-shell {
  width: min(1180px, calc(100vw - 44px)) !important;
  max-width: calc(100vw - 24px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.th-pin-nav-inner,
.th-auth-nav-inner {
  width: 100% !important;
  max-width: 100% !important;
}

.th-pin-hero,
.th-auth-hero {
  width: 100% !important;
  max-width: calc(100vw - 44px) !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
}

.th-pin-hero-copy,
.th-pin-visual,
.th-auth-hero-copy,
.th-auth-collage,
.th-pin-row,
.th-auth-features,
.th-pin-section-title,
.th-auth-section-title {
  min-width: 0 !important;
  max-width: 100% !important;
}

.th-pin-page img,
.th-auth-page img {
  max-width: 100% !important;
}

.th-pin-hero h1,
.th-pin-copy h3,
.th-pin-section-title h2,
.th-pin-register h2,
.th-auth-hero-copy h1,
.th-auth-section-title h2,
.th-auth-register-content h2 {
  overflow-wrap: anywhere;
}

.th-pin-hero-actions,
.th-auth-hero-actions,
.th-pin-hero-copy > div[style*="display:flex"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.th-pin-modal,
.th-auth-modal {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.th-pin-dialog,
.th-auth-dialog {
  max-width: calc(100vw - 24px) !important;
}

.th-pin-dialog-main,
.th-auth-dialog-main {
  min-width: 0 !important;
}

.th-pin-dialog-main .fr_auth_form,
.th-auth-dialog-main .fr_auth_form,
body.visitor .fr_auth_form {
  width: 100% !important;
  max-width: 390px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.visitor .fr_auth_form .js_panel,
.th-pin-dialog-main .js_panel,
.th-auth-dialog-main .js_panel {
  width: 100% !important;
  max-width: 100% !important;
}

body.visitor .fr_welcome_title,
.th-pin-dialog-main .fr_welcome_title,
.th-auth-dialog-main .fr_welcome_title {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #111 !important;
  font-size: clamp(24px, 5vw, 34px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  text-align: center !important;
}

body.visitor .fr_welcome_field,
.th-pin-dialog-main .fr_welcome_field,
.th-auth-dialog-main .fr_welcome_field {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 12px !important;
}

body.visitor .fr_welcome_field input,
body.visitor .fr_welcome_field select,
body.visitor .fr_welcome_field .form-control,
body.visitor .fr_welcome_field .form-select,
.th-pin-dialog-main .fr_welcome_field input,
.th-pin-dialog-main .fr_welcome_field select,
.th-auth-dialog-main .fr_welcome_field input,
.th-auth-dialog-main .fr_welcome_field select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 54px !important;
  height: 54px !important;
  padding: 0 46px 0 54px !important;
  color: #111 !important;
  background: #fff !important;
  border: 1px solid #cfd4dc !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

body.visitor .fr_welcome_field input:focus,
body.visitor .fr_welcome_field select:focus,
.th-pin-dialog-main .fr_welcome_field input:focus,
.th-pin-dialog-main .fr_welcome_field select:focus,
.th-auth-dialog-main .fr_welcome_field input:focus,
.th-auth-dialog-main .fr_welcome_field select:focus {
  border-color: #5e72e4 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.13) !important;
}

body.visitor .fr_welcome_field > svg.position-absolute,
.th-pin-dialog-main .fr_welcome_field > svg.position-absolute,
.th-auth-dialog-main .fr_welcome_field > svg.position-absolute {
  left: 18px !important;
  right: auto !important;
  top: 50% !important;
  width: 22px !important;
  height: 22px !important;
  color: #8a8f98 !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

body.visitor .fr_welcome_field:focus-within > svg.position-absolute,
.th-pin-dialog-main .fr_welcome_field:focus-within > svg.position-absolute,
.th-auth-dialog-main .fr_welcome_field:focus-within > svg.position-absolute {
  color: #5e72e4 !important;
}

body.visitor .js_toggle-password,
.th-pin-dialog-main .js_toggle-password,
.th-auth-dialog-main .js_toggle-password {
  left: auto !important;
  right: 0 !important;
  top: 0 !important;
  display: grid !important;
  width: 48px !important;
  height: 54px !important;
  place-items: center !important;
}

body.visitor .js_toggle-password svg,
.th-pin-dialog-main .js_toggle-password svg,
.th-auth-dialog-main .js_toggle-password svg {
  position: static !important;
  width: 23px !important;
  height: 23px !important;
  transform: none !important;
}

body.visitor .fr_welcome_btn,
body.visitor .fr_auth_form .btn-primary,
.th-pin-dialog-main .fr_welcome_btn,
.th-auth-dialog-main .fr_welcome_btn {
  width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  white-space: normal !important;
}

body.visitor .fr_auth_form .d-flex.align-items-center.justify-content-between,
.th-pin-dialog-main .d-flex.align-items-center.justify-content-between,
.th-auth-dialog-main .d-flex.align-items-center.justify-content-between {
  gap: 12px !important;
  min-width: 0 !important;
}

body.visitor .fr_auth_form .d-flex.align-items-center.justify-content-between > a,
.th-pin-dialog-main .d-flex.align-items-center.justify-content-between > a,
.th-auth-dialog-main .d-flex.align-items-center.justify-content-between > a {
  min-width: 0 !important;
  max-width: 55% !important;
  overflow-wrap: anywhere !important;
  text-align: right !important;
}

body.visitor .fr_welcome_switch,
.th-pin-dialog-main .fr_welcome_switch,
.th-auth-dialog-main .fr_welcome_switch {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.visitor .th-signup-consent,
.th-pin-dialog-main .th-signup-consent,
.th-auth-dialog-main .th-signup-consent {
  width: 100% !important;
  max-width: 100% !important;
}

body.visitor .g-recaptcha,
body.visitor .cf-turnstile,
.th-pin-dialog-main .g-recaptcha,
.th-pin-dialog-main .cf-turnstile,
.th-auth-dialog-main .g-recaptcha,
.th-auth-dialog-main .cf-turnstile {
  max-width: 100% !important;
  overflow: hidden !important;
}

body.visitor:not(.index-body) .container.mt30 {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.visitor:not(.index-body) .container.mt30 .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.visitor:not(.index-body) .container.mt30 [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.visitor:not(.index-body) .card-register,
body.visitor:not(.index-body) .fr_auth_form {
  width: min(460px, 100%) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.visitor .landing-row,
body.visitor .landing-left,
body.visitor .landing-form {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.visitor .landing-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.visitor .landing-row > [class*="col-"] {
  min-width: 0 !important;
}

body.visitor .landing-form {
  width: min(460px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1050px) {
  .th-pin-links,
  .th-auth-nav-links {
    display: none !important;
  }

  .th-pin-hero,
  .th-auth-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    min-height: auto !important;
    padding: 30px 0 48px !important;
    text-align: center !important;
  }

  .th-pin-hero-copy,
  .th-auth-hero-copy {
    order: 1 !important;
    width: 100% !important;
  }

  .th-pin-hero-copy h1,
  .th-pin-hero-copy p,
  .th-auth-hero-copy h1,
  .th-auth-hero-copy p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .th-pin-hero-actions,
  .th-auth-hero-actions,
  .th-pin-hero-copy > div[style*="display:flex"] {
    justify-content: center !important;
  }

  .th-pin-visual,
  .th-auth-collage {
    order: 2 !important;
    width: min(460px, 100%) !important;
    min-height: 340px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .th-pin-row,
  .th-auth-features {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .th-pin-row:nth-child(even) .th-pin-media {
    order: 0 !important;
  }

  body.visitor .landing-row {
    display: block !important;
  }

  body.visitor .landing-left {
    min-height: 360px !important;
  }

  body.visitor .landing-left:before {
    background-position: center !important;
    background-size: cover !important;
  }

  body.visitor .landing-intro,
  body.visitor .landing-form {
    width: min(560px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .th-pin-shell,
  .th-auth-shell {
    width: min(100% - 28px, 560px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .th-pin-nav-inner,
  .th-auth-nav-inner {
    min-height: 62px !important;
    gap: 10px !important;
  }

  .th-pin-brand,
  .th-auth-brand {
    max-width: 42vw !important;
    overflow: hidden !important;
    font-size: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .th-pin-actions,
  .th-auth-nav-actions {
    gap: 8px !important;
  }

  .th-pin-btn,
  .th-auth-btn {
    min-height: 38px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
  }

  .th-pin-actions .th-pin-btn-soft,
  .th-auth-nav-actions .th-auth-btn-soft {
    display: none !important;
  }

  .th-pin-hero,
  .th-auth-hero {
    max-width: calc(100vw - 28px) !important;
    padding-top: 24px !important;
    padding-bottom: 42px !important;
  }

  .th-pin-hero h1,
  .th-auth-hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(32px, 10vw, 48px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
  }

  .th-pin-hero p,
  .th-auth-hero-copy p {
    max-width: 100% !important;
    font-size: 15px !important;
  }

  .th-pin-hero-copy > div[style*="display:flex"],
  .th-pin-hero-actions,
  .th-auth-hero-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .th-pin-hero-copy .th-pin-btn,
  .th-auth-hero-actions .th-auth-btn {
    width: 100% !important;
  }

  .th-pin-visual,
  .th-auth-collage {
    width: min(360px, 100%) !important;
    min-height: 280px !important;
  }

  .th-pin-main,
  .th-auth-pin-main {
    left: 42% !important;
    top: 2% !important;
    width: min(44vw, 162px) !important;
    height: 238px !important;
  }

  .th-pin-left,
  .th-auth-pin-left {
    left: 0 !important;
    top: 22% !important;
    width: min(42vw, 148px) !important;
    height: 132px !important;
  }

  .th-pin-bottom,
  .th-auth-pin-small {
    left: 16% !important;
    top: 58% !important;
    width: min(35vw, 126px) !important;
    height: 118px !important;
  }

  .th-pin-round,
  .th-auth-pin-avatar {
    left: auto !important;
    right: 7% !important;
    top: 66% !important;
    width: 82px !important;
    height: 82px !important;
    border-width: 4px !important;
  }

  .th-pin-smile,
  .th-auth-bubble-smile {
    left: 3% !important;
    top: 9% !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
  }

  .th-pin-heart,
  .th-auth-bubble-heart {
    right: 2% !important;
    top: 42% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 26px !important;
  }

  .th-pin-time,
  .th-auth-time {
    right: 7% !important;
    top: 10% !important;
    font-size: 12px !important;
  }

  .th-pin-section,
  .th-auth-section {
    padding: 48px 0 !important;
  }

  .th-pin-section-title,
  .th-auth-section-title {
    margin-bottom: 28px !important;
  }

  .th-pin-media,
  .th-auth-feature-media {
    min-height: 220px !important;
    padding: 22px !important;
  }

  .th-pin-register,
  .th-pin-register-content,
  .th-auth-register-band,
  .th-auth-register-content {
    min-height: 360px !important;
  }

  .th-pin-register h2,
  .th-auth-register-content h2 {
    max-width: 100% !important;
    font-size: clamp(32px, 11vw, 48px) !important;
  }

  .th-pin-mosaic,
  .th-auth-register-bg {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .th-pin-footer-inner,
  .th-auth-footer-inner {
    flex-direction: column !important;
  }

  .th-pin-footer-links,
  .th-auth-footer-links {
    grid-template-columns: repeat(2, minmax(0, auto)) !important;
  }

  .th-pin-modal,
  .th-auth-modal {
    align-items: flex-start !important;
    padding: 10px !important;
  }

  .th-pin-dialog,
  .th-auth-dialog,
  .th-pin-page.is-auth-signup .th-pin-dialog,
  .th-auth-page.is-auth-signup .th-auth-dialog {
    display: block !important;
    width: min(420px, 100%) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  .th-pin-dialog-main,
  .th-auth-dialog-main {
    max-height: calc(100dvh - 20px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 42px 16px 18px !important;
  }

  .th-pin-dialog-side,
  .th-auth-dialog-side {
    display: none !important;
  }

  body.visitor .fr_welcome_title,
  .th-pin-dialog-main .fr_welcome_title,
  .th-auth-dialog-main .fr_welcome_title {
    font-size: clamp(24px, 7vw, 31px) !important;
  }

  body.visitor .landing-left {
    min-height: 300px !important;
  }

  body.visitor .landing-intro h5,
  body.visitor .landing-intro h1 {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.visitor .landing-form {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 430px) {
  body.visitor .fr_welcome_field input,
  body.visitor .fr_welcome_field select,
  .th-pin-dialog-main .fr_welcome_field input,
  .th-pin-dialog-main .fr_welcome_field select,
  .th-auth-dialog-main .fr_welcome_field input,
  .th-auth-dialog-main .fr_welcome_field select {
    min-height: 52px !important;
    height: 52px !important;
    padding-left: 50px !important;
    padding-right: 44px !important;
    font-size: 14px !important;
  }

  body.visitor .js_toggle-password,
  .th-pin-dialog-main .js_toggle-password,
  .th-auth-dialog-main .js_toggle-password {
    height: 52px !important;
  }

  body.visitor .fr_auth_form .d-flex.align-items-center.justify-content-between,
  .th-pin-dialog-main .d-flex.align-items-center.justify-content-between,
  .th-auth-dialog-main .d-flex.align-items-center.justify-content-between {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.visitor .fr_auth_form .d-flex.align-items-center.justify-content-between > a,
  .th-pin-dialog-main .d-flex.align-items-center.justify-content-between > a,
  .th-auth-dialog-main .d-flex.align-items-center.justify-content-between > a {
    max-width: 100% !important;
    text-align: left !important;
  }

  .th-pin-visual,
  .th-auth-collage {
    min-height: 250px !important;
  }

  .th-pin-main,
  .th-auth-pin-main {
    height: 212px !important;
  }

  .th-pin-left,
  .th-auth-pin-left {
    height: 118px !important;
  }

  .th-pin-bottom,
  .th-auth-pin-small {
    height: 104px !important;
  }
}

/* Desktop landing/auth polish: spacing, input icons and auth side visual. */
@media (min-width: 1051px) {
  .th-pin-shell,
  .th-auth-shell,
  .th-pin-nav-inner,
  .th-auth-nav-inner,
  .th-pin-hero,
  .th-auth-hero {
    width: min(1180px, calc(100vw - 160px)) !important;
    max-width: calc(100vw - 160px) !important;
  }

  .th-pin-hero,
  .th-auth-hero {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .th-pin-hero-copy,
  .th-auth-hero-copy {
    padding-left: clamp(24px, 3vw, 54px) !important;
  }

  .th-pin-hero-copy h1,
  .th-auth-hero-copy h1 {
    max-width: 560px !important;
  }
}

.th-pin-dialog-main .fr_welcome_field,
.th-auth-dialog-main .fr_welcome_field,
body.visitor .fr_welcome_field {
  isolation: isolate;
}

.th-pin-dialog-main .fr_welcome_field:before,
.th-auth-dialog-main .fr_welcome_field:before,
body.visitor .fr_welcome_field:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f5f7fb;
  transform: translateY(-50%);
}

.th-pin-dialog-main .fr_welcome_field:focus-within:before,
.th-auth-dialog-main .fr_welcome_field:focus-within:before,
body.visitor .fr_welcome_field:focus-within:before {
  background: rgba(94, 114, 228, 0.1);
}

body.visitor .fr_welcome_field > svg.position-absolute,
.th-pin-dialog-main .fr_welcome_field > svg.position-absolute,
.th-auth-dialog-main .fr_welcome_field > svg.position-absolute {
  left: 16px !important;
  z-index: 2 !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  pointer-events: none !important;
}

body.visitor .fr_welcome_field input,
body.visitor .fr_welcome_field select,
body.visitor .fr_welcome_field .form-control,
body.visitor .fr_welcome_field .form-select,
.th-pin-dialog-main .fr_welcome_field input,
.th-pin-dialog-main .fr_welcome_field select,
.th-auth-dialog-main .fr_welcome_field input,
.th-auth-dialog-main .fr_welcome_field select {
  padding-left: 58px !important;
}

.th-pin-auth-visual,
.th-auth-qr {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.28) 0 18px, transparent 19px),
    linear-gradient(145deg, #eef6ff, #ffffff);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.th-pin-auth-visual:before,
.th-auth-qr:before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(230, 0, 35, 0.13), rgba(94, 114, 228, 0.14));
}

.th-pin-auth-phone {
  position: relative;
  display: flex;
  width: 86px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 5px solid #ffffff;
  border-radius: 24px;
  background: linear-gradient(160deg, #1877f2, #06b6d4);
  box-shadow: inset 0 -20px 36px rgba(15, 23, 42, 0.16);
}

.th-pin-auth-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #1877f2;
  background: #ffffff;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 950;
}

.th-pin-auth-line {
  display: block;
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.th-pin-auth-line.short {
  width: 34px;
}

.th-pin-auth-chip {
  position: absolute;
  right: -22px;
  bottom: 14px;
  padding: 6px 9px;
  color: #0f172a;
  background: #ffffff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.th-auth-qr {
  background:
    radial-gradient(circle at 76% 16%, rgba(6, 182, 212, 0.28) 0 18px, transparent 19px),
    linear-gradient(145deg, #eef6ff, #ffffff) !important;
}

.th-auth-qr:after {
  content: "T";
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #ffffff;
  border-radius: 22px;
  background: linear-gradient(160deg, #1877f2, #06b6d4);
  font-size: 42px;
  font-weight: 950;
}

@media (max-width: 760px) {
  .th-pin-dialog-main .fr_welcome_field:before,
  .th-auth-dialog-main .fr_welcome_field:before,
  body.visitor .fr_welcome_field:before {
    display: none !important;
  }

  body.visitor .fr_welcome_field input,
  body.visitor .fr_welcome_field select,
  body.visitor .fr_welcome_field .form-control,
  body.visitor .fr_welcome_field .form-select,
  .th-pin-dialog-main .fr_welcome_field input,
  .th-pin-dialog-main .fr_welcome_field select,
  .th-auth-dialog-main .fr_welcome_field input,
  .th-auth-dialog-main .fr_welcome_field select {
    padding-left: 50px !important;
  }
}
