:root {
  --tpt-teal: #047d80;
  --tpt-teal-dark: #055f63;
  --tpt-teal-soft: #e8fbfb;
  --tpt-cyan: #c9f5f7;
  --tpt-slate: #1f3a44;
  --tpt-muted: #647986;
  --tpt-border: #dbe9ec;
  --tpt-coral: #ff6f61;
  --tpt-white: #ffffff;
  --tpt-forgot: #fa2c2c;
  --tpt-shadow: 0 22px 50px rgba(15, 63, 73, 0.12);
  --tpt-shadow-soft: 0 14px 34px rgba(15, 63, 73, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: "Mitr", "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
  color: var(--tpt-slate);
  background: #f4fbfc;
}

body {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

a,
a:hover {
  text-decoration: none;
}

.tpt-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(4, 125, 128, 0.1),
      transparent 24rem
    ),
    linear-gradient(115deg, #eafafb 0%, #f7fcfd 45%, #ffffff 100%);
}

.tpt-topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 42px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(4, 125, 128, 0.1);
  box-shadow: 0 8px 26px rgba(31, 58, 68, 0.06);
  position: relative;
  z-index: 5;
}

.tpt-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
}

.tpt-brand__logo {
  /* width: 90px;
	height: 90px; */
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(4, 125, 128, 0.18);
  box-shadow: 0 10px 24px rgba(4, 125, 128, 0.1);
  overflow: hidden;
  flex: 0 0 auto;
}

.tpt-brand__logo img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.tpt-brand__th {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 600;
  color: #075d49;
  margin: 0;
}

.tpt-brand__en {
  display: block;
  margin-top: 4px;
  color: #7a878c;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.tpt-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.tpt-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(4, 125, 128, 0.45);
  color: var(--tpt-teal-dark);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tpt-nav__btn:hover {
  color: #fff;
  background: var(--tpt-teal);
  border-color: var(--tpt-teal);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(4, 125, 128, 0.18);
}

.tpt-shell {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
}

.tpt-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  /* คืน layout เดิม ไม่ให้ text ชิดซ้าย */
  min-height: calc(100vh - 92px);
  padding: 60px 64px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #dffafb !important;
}
/* รูปพื้นหลังหลัก */

.tpt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  background-image: url("../media/img/bg/background_tb.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 1;
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
}
/* overlay บาง ๆ เฉพาะเพื่อให้อ่านข้อความได้ */

.tpt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block !important;
  background: linear-gradient(
    90deg,
    rgba(238, 253, 253, 0.52) 0%,
    rgba(238, 253, 253, 0.3) 34%,
    rgba(238, 253, 253, 0.1) 62%,
    rgba(238, 253, 253, 0) 100%
  );
  transform: none !important;
  border-radius: 0 !important;
  pointer-events: none;
}
/* ให้ข้อความอยู่บน background */

.tpt-hero__content,
.tpt-hero__footer {
  position: relative;
  z-index: 2;
}
/* จำกัดความกว้างข้อความให้เหมือน modern */

.tpt-hero__content {
  max-width: 960px;
  margin-top: 0;
}
/* ซ่อนเฉพาะภาพวาด CSS/SVG เดิม */

.tpt-medical-art {
  display: none !important;
}

.tpt-hero h1 {
  margin: 0;
  color: #075e63;
  font-weight: 500;
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tpt-accent-line {
  width: 550px;
  height: 5px;
  margin: 24px 0 22px;
  border-radius: 999px;
  background: var(--tpt-coral);
}

.tpt-hero h2 {
  max-width: 970px;
  margin: 0 0 18px;
  color: #075e63;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
}

.tpt-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(31, 58, 68, 0.82);
  font-size: 24px;
  line-height: 1.8;
  font-weight: 500;
}

.tpt-medical-art {
  display: none;
}

.tpt-art-card {
  position: absolute;
  right: 2%;
  bottom: 18px;
  width: 390px;
  height: 185px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 70px rgba(19, 234, 250, 0.31);
  backdrop-filter: blur(12px);
  transform: rotate(4deg);
  padding: 22px;
}

.tpt-chart-line {
  width: 100%;
  height: 70px;
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      transparent 0 19%,
      rgba(255, 255, 255, 0.3) 20% 21%,
      transparent 22% 39%,
      rgba(255, 255, 255, 0.3) 40% 41%,
      transparent 42% 59%,
      rgba(255, 255, 255, 0.3) 60% 61%,
      transparent 62% 79%,
      rgba(255, 255, 255, 0.3) 80% 81%,
      transparent 82%
    ),
    linear-gradient(
      0deg,
      transparent 0 32%,
      rgba(255, 255, 255, 0.28) 33% 34%,
      transparent 35% 65%,
      rgba(255, 255, 255, 0.28) 66% 67%,
      transparent 68%
    );
  position: relative;
  overflow: hidden;
}

.tpt-chart-line::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 22px;
  top: 20px;
  height: 40px;
  background: linear-gradient(
    135deg,
    transparent 0 15%,
    #fff 16% 17%,
    transparent 18% 32%,
    #fff 33% 34%,
    transparent 35% 54%,
    #fff 55% 56%,
    transparent 57% 76%,
    #fff 77% 78%,
    transparent 79%
  );
  opacity: 0.9;
}

.tpt-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
  height: 48px;
}

.tpt-bars span {
  display: block;
  width: 28px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.7);
}

.tpt-lungs {
  position: absolute;
  left: -30px;
  bottom: -8px;
  width: 390px;
  max-width: 55%;
  opacity: 0.58;
  filter: drop-shadow(0 18px 20px rgba(4, 125, 128, 0.12));
}

.tpt-pill {
  position: absolute;
  left: 42%;
  bottom: 16px;
  width: 148px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0 49%, #08979b 50% 100%);
  box-shadow: 0 15px 34px rgba(4, 125, 128, 0.22);
  transform: rotate(-12deg);
  opacity: 0.92;
}

.tpt-floating-icon {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(4, 125, 128, 0.12);
  backdrop-filter: blur(10px);
}

.tpt-floating-icon--shield {
  right: 45%;
  top: 20px;
}

.tpt-floating-icon--pill {
  right: 30%;
  top: 84px;
  font-size: 30px;
}

.tpt-floating-icon--plus {
  left: 2%;
  top: 38%;
  font-size: 42px;
}

.tpt-dots {
  position: absolute;
  width: 116px;
  height: 116px;
  right: 4%;
  top: 12px;
  opacity: 0.55;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.82) 2px,
    transparent 2.5px
  );
  background-size: 14px 14px;
}

.tpt-hero__footer {
  margin-top: 540px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 18px;
  font-weight: 600;
}

.tpt-panel {
  min-height: calc(100vh - 92px);
  padding: 24px 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpt-panel__inner {
  width: min(100%, 860px);
}

.tpt-login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 233, 236, 0.82);
  border-radius: 28px;
  box-shadow: var(--tpt-shadow);
  padding: 34px 42px 30px;
}

.tpt-login-title {
  margin: 0;
  text-align: center;
  color: var(--tpt-teal-dark);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
}

.tpt-login-subtitle {
  margin: 10px 0 26px;
  text-align: center;
  color: var(--tpt-muted);
  font-size: 16px;
  font-weight: 500;
}

.tpt-alert {
  border-radius: 16px;
  border: 0;
  box-shadow: 0 10px 24px rgba(31, 58, 68, 0.08);
  margin-bottom: 20px;
}

.tpt-field {
  margin-bottom: 18px;
}

.tpt-field label {
  display: block;
  margin-bottom: 8px;
  color: #31515a;
  font-weight: 800;
  font-size: 15px;
}

.tpt-input-wrap {
  position: relative;
}

.tpt-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa9af;
  font-size: 18px;
  z-index: 2;
}

.tpt-login-card .form-control {
  height: 50px;
  border-radius: 12px;
  border: 1px solid #cedde1;
  padding-left: 48px;
  color: var(--tpt-slate);
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  transition: all 0.18s ease;
}

.tpt-login-card .form-control:focus {
  border-color: var(--tpt-teal);
  box-shadow: 0 0 0 4px rgba(4, 125, 128, 0.12);
}

.tpt-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa9af;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.tpt-login-meta {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 20px;
}

.tpt-forgot {
  color: #ee2a2a;
  font-weight: 500;
  font-size: 20px;
  margin-top: 10px;
}

.tpt-forgot:hover {
  color: var(--tpt-forgot);
}

.tpt-login-btn {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #039895, #047d80);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(4, 125, 128, 0.22);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.tpt-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(4, 125, 128, 0.28);
}

.tpt-login-btn:disabled {
  cursor: wait;
  opacity: 0.92;
  transform: none;
  box-shadow: 0 12px 24px rgba(4, 125, 128, 0.18);
}

.tpt-login-btn__spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  display: none;
  animation: tptSpin 0.8s linear infinite;
  flex: 0 0 auto;
}

.tpt-login-btn.is-loading .tpt-login-btn__spinner {
  display: inline-block;
}

@keyframes tptSpin {
  to {
    transform: rotate(360deg);
  }
}

.tpt-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6eef1;
  color: #8a9aa2;
  font-weight: 700;
}

.tpt-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.tpt-service-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 26px 18px 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--tpt-slate);
  border: 1px solid rgba(219, 233, 236, 0.85);
  box-shadow: 0 22px 42px rgba(5, 94, 99, 0.959);
  transition: all 0.2s ease;
}

.tpt-service-card:hover {
  transform: translateY(-4px);
  color: var(--tpt-slate);
  box-shadow: 0 22px 42px rgba(54, 221, 193, 0.327);
}

.tpt-service-card h3 {
  /* min-height: 42px; */
  margin: 0 0 8px;
  color: var(--tpt-teal-dark);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.tpt-service-card p {
  margin: 0;
  color: var(--tpt-muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}
/* .tpt-privacy {
	text-align: center;
	margin-top: 22px;
}

.tpt-privacy .btn {
	border-radius: 999px;
	font-weight: 800;
	padding: 10px 18px;
} */

.tpt-privacy {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #5b7373;
}

.tpt-privacy i {
  margin-right: 6px;
  color: #168080;
}

.tpt-privacy a {
  color: #168080;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tpt-privacy a:hover {
  color: #0d6f6f;
}

@media (max-width: 1180px) {
  .tpt-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }
  .tpt-nav {
    justify-content: flex-start;
  }
  .tpt-shell {
    grid-template-columns: 1fr;
  }
  .tpt-hero {
    min-height: auto;
    padding: 54px 32px 30px;
  }
  .tpt-panel {
    min-height: auto;
    padding: 36px 24px 42px;
  }
}

@media (max-width: 760px) {
  .tpt-topbar {
    padding: 14px 16px;
  }
  .tpt-brand__logo {
    width: 56px;
    height: 56px;
  }
  .tpt-brand__logo img {
    max-width: 46px;
    max-height: 46px;
  }
  .tpt-brand__th {
    font-size: 16px;
  }
  .tpt-nav {
    width: 100%;
    gap: 8px;
  }
  .tpt-nav__btn {
    width: 100%;
    height: 40px;
    font-size: 14px;
  }
  .tpt-hero {
    padding: 38px 20px 26px;
  }
  .tpt-hero h1 {
    font-size: 40px;
  }
  .tpt-hero h2 {
    font-size: 20px;
  }
  .tpt-hero p {
    font-size: 16px;
  }
  .tpt-medical-art {
    height: 280px;
  }
  .tpt-art-card {
    width: 280px;
    right: -14px;
  }
  .tpt-lungs {
    max-width: 78%;
    width: 320px;
  }
  .tpt-pill {
    left: 42%;
    width: 120px;
  }
  .tpt-login-card {
    padding: 26px 20px;
    border-radius: 22px;
  }
  .tpt-services {
    grid-template-columns: 1fr;
  }
}

.tpt-service-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
/* Reference layout: proportions matched to the supplied desktop mockup. */

.tpt-page {
  background: #f7fcfd;
}

.tpt-topbar {
  height: 104px;
  min-height: 104px;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(4, 125, 128, 0.1);
  box-shadow: 0 8px 24px rgba(31, 58, 68, 0.08);
}

.tpt-brand {
  min-width: 420px;
  gap: 18px;
  color: #0f5d42;
}

.tpt-brand__logo {
  width: 78px;
  height: 78px;
  border: 0;
  box-shadow: none;
  flex: 0 0 78px;
}

.tpt-brand__logo img {
  width: 78px;
  height: 78px;
  max-width: 78px;
  max-height: 78px;
}

.tpt-brand__th {
  display: block;
  color: #0c5b39;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 500;
}

.tpt-brand__en {
  margin-top: 8px;
  color: #6e767d;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tpt-nav {
  gap: 14px;
}

.tpt-nav__btn {
  height: 48px;
  gap: 10px;
  padding: 0 22px;
  border-color: rgba(4, 125, 128, 0.64);
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.tpt-nav__btn i {
  font-size: 18px;
  color: var(--tpt-teal);
}

.tpt-nav__btn:hover i,
.tpt-nav__btn:focus i {
  color: #fff;
}

.tpt-shell {
  min-height: calc(100vh - 104px);
  grid-template-columns: 50.8% 49.2%;
  background: #f7fcfd;
}

.tpt-hero {
  min-height: calc(100vh - 104px);
  padding: 60px 50px 0px;
  justify-content: flex-start;
  background: #dffafb !important;
}

.tpt-hero::before {
  background-size: cover;
  background-position: center bottom;
  filter: saturate(1.04) contrast(1.02);
}

.tpt-hero::after {
  background:
    linear-gradient(
      180deg,
      rgba(228, 252, 253, 0.76) 0%,
      rgba(217, 249, 250, 0.48) 37%,
      rgba(79, 204, 209, 0.2) 100%
    ),
    linear-gradient(
      90deg,
      rgba(233, 253, 253, 0.44) 0%,
      rgba(233, 253, 253, 0.22) 48%,
      rgba(233, 253, 253, 0) 100%
    );
}

.tpt-hero__content {
  max-width: 720px;
}

.tpt-hero h1 {
  font-size: 62px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  /* text-wrap: balance; */
}

.tpt-accent-line {
  width: 570px;
  height: 4px;
  margin: 28px 0 24px;
}

.tpt-hero h2 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: 23px;
  line-height: 1.42;
  font-weight: 600;
  /* text-wrap: balance; */
}

.tpt-hero p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 400;
  text-wrap: pretty;
}
/* .tpt-hero__footer {
	display: none;
} */

.tpt-panel {
  min-height: calc(100vh - 104px);
  align-items: flex-start;
  padding: 32px 24px 44px;
  background:
    radial-gradient(
      circle at 50% 16%,
      rgba(4, 125, 128, 0.08),
      transparent 22rem
    ),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 42%, #f7fbfc 100%);
}

.tpt-panel__inner {
  width: min(100%, 860px);
}

.tpt-login-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 30px 42px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(31, 58, 68, 0.14);
}

/* Keep the sign-in form visually balanced inside the wider panel. */
.tpt-login-card.m-login__signin {
  width: min(100%, 680px);
  padding: 36px 48px 30px;
}

.tpt-login-title {
  font-size: 40px;
  font-weight: 600;
}

.tpt-login-subtitle {
  margin: 8px 0 20px;
  color: #425a64;
  font-size: 18px;
  font-weight: 400;
}

.tpt-alert {
  margin-bottom: 18px;
  border-radius: 12px;
}

.tpt-field {
  margin-bottom: 16px;
}

.tpt-field label {
  color: #174c54;
  font-size: 20px;
  font-weight: 500;
}

.tpt-input-icon {
  left: 17px;
  font-size: 22px;
}

.tpt-login-card .form-control {
  height: 50px;
  border-radius: 8px;
  padding-left: 50px;
  padding-right: 50px;
  font-weight: 400;
  box-shadow: none;
}

.tpt-login-card .form-control::placeholder {
  color: #8e989f;
  opacity: 1;
}

.tpt-password-toggle {
  right: 14px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.tpt-password-toggle:hover,
.tpt-password-toggle:focus {
  color: var(--tpt-teal-dark);
  background: var(--tpt-teal-soft);
  outline: none;
}

.tpt-login-meta {
  margin: -3px 0 20px;
}

.tpt-forgot {
  color: #ed2c36;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tpt-forgot:hover {
  color: #b61739;
  text-decoration: underline;
}

.tpt-login-btn {
  height: 50px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0aa09c, #047d80);
  box-shadow: 0 12px 22px rgba(4, 125, 128, 0.2);
}

.tpt-secure-note {
  display: none;
}

.m-demo__preview--badge {
  margin-top: 22px;
  padding: 0 !important;
}

.m-divider {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #8a949a;
  font-size: 20px;
  font-weight: 400;
}

.m-divider span:first-child,
.m-divider span:last-child {
  display: block;
  height: 1px;
  background: #dde6ea;
}

.m-divider span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.m-divider i {
  color: #9aa4aa;
}

.tpt-privacy {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.tpt-privacy__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #126f72;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.tpt-privacy__link:hover,
.tpt-privacy__link:focus {
  color: #055f63;
  background: var(--tpt-teal-soft);
  outline: none;
}

.tpt-privacy__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(4, 125, 128, 0.18);
}

.tpt-privacy-modal .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.tpt-privacy-modal .modal-header {
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid #dbe9ec;
  background: #f4fbfc;
}

.tpt-privacy-modal__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 24px;
}

.tpt-privacy-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff6f6;
  color: var(--tpt-teal-dark);
  font-size: 18px;
  flex: 0 0 42px;
}

.tpt-privacy-modal .modal-title {
  margin: 0;
  color: var(--tpt-teal-dark);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.tpt-privacy-modal__heading p {
  max-width: 66ch;
  margin: 5px 0 0;
  color: #536a73;
  font-size: 14px;
  line-height: 1.6;
}

.tpt-privacy-modal .modal-body {
  padding: 24px 28px;
  color: #29454f;
  font-size: 15px;
  line-height: 1.75;
}

.tpt-privacy-modal .modal-body h5 {
  margin: 24px 0 8px;
  color: var(--tpt-teal-dark);
  font-size: 17px;
  font-weight: 600;
}

.tpt-privacy-modal .modal-body h5:first-of-type {
  margin-top: 18px;
}

.tpt-privacy-modal .modal-body h5 u {
  text-decoration: none;
}

.tpt-privacy-modal .modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #dbe9ec;
  background: #fff;
}

.tpt-privacy-modal__close {
  min-width: 150px;
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--tpt-teal);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tpt-privacy-modal__close:hover,
.tpt-privacy-modal__close:focus {
  background: var(--tpt-teal-dark);
  outline: none;
}

@media (max-width: 760px) {
  .tpt-privacy-modal .modal-header,
  .tpt-privacy-modal .modal-body,
  .tpt-privacy-modal .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tpt-privacy-modal__icon {
    display: none;
  }
}

.tpt-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 24px;
}

.tpt-service-card {
  min-height: 230px;
  padding: 18px 8px 14px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(105, 196, 230, 0.12);
}

.tpt-service-card:hover,
.tpt-service-card:focus {
  box-shadow: 0 20px 36px rgba(113, 208, 243, 0.24);
}

.tpt-service-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 10px;
}

.tpt-service-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.tpt-service-card h3 {
  margin-bottom: 1px;
  font-size: 20px;
  line-height: 1.35;
  text-wrap: balance;
}

.tpt-service-card p {
  max-width: 240px;
  color: #66737a;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/*
 * Desktop density
 * The supplied compact reference is the current desktop composition rendered
 * at 80%. Keep the established proportions while preserving the full viewport.
 */

@media (min-width: 1321px) {
  .tpt-page {
    width: 125vw;
    min-height: 125vh;
    zoom: 0.8;
  }
  .tpt-shell,
  .tpt-hero,
  .tpt-panel {
    min-height: calc(125vh - 104px);
  }
}

@media (max-width: 1320px) {
  .tpt-topbar {
    height: auto;
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }
  .tpt-brand {
    min-width: 0;
  }
  .tpt-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .tpt-shell {
    grid-template-columns: 1fr;
  }
  .tpt-hero {
    min-height: 600px;
    padding: 58px 42px 40px;
  }
  .tpt-panel {
    min-height: auto;
    padding: 32px 24px 52px;
  }
}

@media (max-width: 760px) {
  .tpt-topbar {
    padding: 14px 16px;
    gap: 14px;
  }
  .tpt-brand {
    gap: 12px;
  }
  .tpt-brand__logo,
  .tpt-brand__logo img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
  .tpt-brand__th {
    font-size: 21px;
  }
  .tpt-brand__en {
    margin-top: 5px;
    font-size: 11px;
  }
  .tpt-nav {
    gap: 8px;
  }
  .tpt-nav__btn {
    width: 100%;
    height: 42px;
    font-size: 18px;
  }
  .tpt-shell,
  .tpt-hero,
  .tpt-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .tpt-hero {
    min-height: 520px;
    padding: 46px 24px 32px;
  }
  .tpt-hero h1 {
    font-size: 41px;
  }
  .tpt-accent-line {
    margin: 22px 0 20px;
  }
  .tpt-hero h2 {
    font-size: 20px;
  }
  .tpt-hero p {
    font-size: 16px;
  }
  .tpt-panel {
    padding: 28px 14px 36px;
  }
  .tpt-login-card {
    padding: 28px 20px 26px;
    border-radius: 14px;
  }
  .tpt-login-card.m-login__signin {
    padding: 28px 20px 26px;
  }
  .tpt-login-title {
    font-size: 30px;
  }
  .tpt-services {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tpt-service-card {
    min-height: 220px;
  }
}
