@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/noto-sans-thai-thai-400-normal-BEOmKAI1.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/noto-sans-thai-thai-600-normal-Cs73sVjl.woff2") format("woff2");
}

:root {
  color: #18362c;
  background: #f4f6f2;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  min-height: 100vh;
  color: #18362c;
  background: #f4f6f2;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.05fr) minmax(460px, .95fr);
}

.login-hero {
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: clamp(32px, 5vw, 72px);
  color: #eff9f3;
  background:
    radial-gradient(circle at 12% 9%, rgba(153, 228, 185, .17), transparent 31%),
    radial-gradient(circle at 88% 84%, rgba(101, 189, 145, .14), transparent 35%),
    linear-gradient(145deg, #005b47 0%, #003e32 55%, #002f27 100%);
}

.brand-lockup { display: flex; align-items: center; gap: 15px; }

.brand-lockup img {
  width: 112px;
  height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
}

.brand-lockup span {
  padding-left: 15px;
  border-left: 1px solid rgba(220, 246, 231, .3);
  color: #a2e4bd;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .14em;
}

.hero-copy { max-width: 670px; margin: clamp(60px, 11vh, 130px) 0 50px; }

.eyebrow {
  display: block;
  margin-bottom: 19px;
  color: #9fe3bb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.hero-copy h1 strong { color: #a8e8c2; font-weight: 600; }

.hero-copy > p {
  max-width: 565px;
  margin: 24px 0 0;
  color: rgba(232, 247, 239, .74);
  font-size: 16px;
  line-height: 1.75;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.assurance-grid article {
  min-height: 112px;
  padding: 17px;
  border: 1px solid rgba(190, 231, 210, .18);
  border-radius: 12px;
  background: rgba(0, 42, 33, .25);
}

.assurance-grid b { display: block; color: #eff9f3; font-size: 13px; }

.assurance-grid span {
  display: block;
  margin-top: 7px;
  color: rgba(222, 242, 232, .64);
  font-size: 11px;
  line-height: 1.55;
}

.hero-footnote { color: rgba(220, 241, 230, .52); font-size: 11px; }

.login-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 38px clamp(24px, 6vw, 88px);
  background: #f8f8f5;
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(29px, 4vw, 46px);
  border: 1px solid #dfe6df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(18, 66, 49, .1);
}

.card-brand { display: none; }

.uat-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid #d7bd6a;
  border-radius: 13px;
  color: #7e641a;
  background: #fff9e7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.login-card h1 {
  margin: 20px 0 7px;
  color: #153a2e;
  font-size: 30px;
  line-height: 1.25;
}

.login-card header > p { margin: 0; color: #667c73; font-size: 13px; line-height: 1.6; }

.login-error {
  margin: 19px 0 -2px;
  padding: 11px 13px;
  border: 1px solid #e3a3a5;
  border-radius: 8px;
  color: #9d2e32;
  background: #fff1f1;
  font-size: 12px;
  line-height: 1.45;
}

.login-form { display: grid; gap: 17px; margin-top: 27px; }

.login-form label { display: grid; gap: 7px; color: #2f4c41; font-size: 12px; font-weight: 600; }

.login-form input {
  width: 100%;
  height: 51px;
  padding: 0 14px;
  border: 1px solid #cbd7d0;
  border-radius: 9px;
  outline: 0;
  color: #19382d;
  background: #fbfcfa;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.login-form input:hover { border-color: #a9beb3; background: #ffffff; }

.login-form input:focus {
  border-color: #2d8b6b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(45, 139, 107, .12);
}

.login-form button {
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  border: 1px solid #176d51;
  border-radius: 9px;
  color: #ffffff;
  background: #237c5e;
  box-shadow: 0 8px 24px rgba(28, 111, 82, .18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.login-form button:hover { background: #176d51; box-shadow: 0 10px 28px rgba(28, 111, 82, .24); }
.login-form button:active { transform: translateY(1px); }
.login-form button:focus-visible { outline: 3px solid rgba(45, 139, 107, .22); outline-offset: 3px; }

.security-note {
  display: grid;
  gap: 3px;
  margin-top: 23px;
  padding: 12px 13px;
  border: 1px solid #ead79d;
  border-radius: 9px;
  color: #7c641f;
  background: #fffaf0;
}

.security-note strong { font-size: 11px; }
.security-note span { font-size: 10px; line-height: 1.55; }

.panel-footer { margin-top: 22px; color: #82938c; font-size: 10px; text-align: center; }

@media (max-width: 960px) {
  .login-shell { grid-template-columns: minmax(360px, .8fr) minmax(440px, 1.2fr); }
  .login-hero { padding: 34px; }
  .hero-copy h1 { font-size: 39px; }
  .assurance-grid { grid-template-columns: 1fr; }
  .assurance-grid article { min-height: 0; }
  .assurance-grid article:nth-child(n+3) { display: none; }
}

@media (max-width: 760px) {
  .login-shell { display: block; }
  .login-hero { display: none; }
  .login-panel { min-height: 100svh; padding: 24px 18px; }
  .login-card { padding: 28px 22px; border-radius: 15px; }
  .card-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
  .card-brand img { width: 102px; height: auto; }
  .card-brand strong { color: #2d8064; font-size: 12px; letter-spacing: .12em; }
  .login-card h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
