@font-face {
  font-family: Manrope;
  src: url("/local-assets/manrope.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/local-assets/thai.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf8f3;
  color: #382719;
  font-family: Manrope, Plex, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
a {
  color: #306649;
  text-underline-offset: 4px;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #af8130;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
input,
select {
  width: 100%;
  border: 1px solid #ccbfaa;
  border-radius: 8px;
  background: #fff;
  color: #382719;
  padding: 13px 14px;
  min-height: 48px;
  margin-top: 7px;
}
label {
  display: block;
  margin: 19px 0;
  font-size: 14px;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 27px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.6;
  letter-spacing: -0.025em;
}
em {
  font-style: normal;
  color: #877038;
}
p {
  margin: 16px 0;
}
img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #80602b;
  display: block;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 1440px;
  margin: auto;
  padding: 60px 6vw;
  gap: 8vw;
}
.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #ded4c3;
  padding-right: 5vw;
}
.brand-panel img {
  align-self: flex-start;
  width: 180px;
  height: 120px;
  margin-bottom: 40px;
}
.brand-panel p {
  color: #695c4a;
  font-size: 17px;
  line-height: 1.9;
}
.local-seal {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 45px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #346448;
}
.local-seal i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #346448;
}
.local-seal span {
  margin-left: auto;
  color: #746858;
}
.login-panel {
  align-self: center;
  max-width: 440px;
  width: 100%;
  padding: 30px 0;
}
.step-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #73644e;
  border-bottom: 1px solid #d8cdbb;
  padding-bottom: 18px;
  margin-bottom: 36px;
}
.step-line #connection {
  color: #306649;
}
.sub {
  color: #746858;
  font-size: 14px;
  margin: 10px 0 28px;
}
.primary,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  border-radius: 8px;
  padding: 12px 21px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary {
  background: #5d3d24;
  border: 1px solid #5d3d24;
  color: #fff7e8;
}
.primary:hover {
  background: #725034;
}
.button {
  background: #fffaf0;
  color: #5d3d24;
  border: 1px solid #cdbba0;
}
.login-panel .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 6px;
}
.error {
  color: #a02c24;
  font-size: 13px;
  white-space: pre-wrap;
}
.error:empty,
.success:empty {
  display: none;
}
.success {
  background: #eaf1e9;
  padding: 14px;
  color: #245638;
  border-radius: 6px;
}
.fineprint {
  border-top: 1px solid #ddd2c0;
  padding-top: 22px;
  color: #746858;
  font-size: 12px;
  margin-top: 30px;
}
.hint {
  font-size: 12px;
  color: #73644e;
  line-height: 1.8;
}
.subtle {
  font-size: 12px;
  color: #746858;
}
.admin-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px;
}
.admin-head {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #d8cdbb;
  padding-bottom: 24px;
}
.admin-head h1 {
  font-size: 30px;
}
.admin-head a {
  margin-left: auto;
}
.status-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  background: #efe8d8;
  padding: 28px;
  border-radius: 10px;
  margin-top: 30px;
}
.status-panel strong {
  display: block;
  font-size: 13px;
  margin: 8px 0 16px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.path {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 30px 0;
}
.panel {
  background: white;
  border: 1px solid #dfd4c2;
  border-radius: 12px;
  padding: 28px;
}
.panel h2 {
  margin-top: 8px;
}
.panel p {
  font-size: 13px;
  color: #746858;
}
footer {
  font-size: 12px;
  color: #746858;
  border-top: 1px solid #d8cdbb;
  padding-top: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .login-layout {
    display: block;
    padding: 24px;
    max-width: 520px;
  }
  .brand-panel {
    border: none;
    padding: 0;
  }
  .brand-panel img {
    width: 120px;
    height: 80px;
    margin-bottom: 20px;
  }
  .brand-panel h1 {
    font-size: 25px;
    line-height: 1.5;
  }
  .brand-panel p,
  .local-seal {
    display: none;
  }
  .brand-panel .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .login-panel {
    padding: 25px 0;
  }
  .step-line {
    margin-bottom: 24px;
  }
  .admin-layout {
    padding: 20px 16px;
  }
  .admin-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .admin-head img {
    width: 80px;
    height: 55px;
  }
  .admin-head h1 {
    font-size: 24px;
  }
  .admin-head a {
    width: 100%;
    margin: 0;
  }
  .admin-grid,
  .status-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .panel {
    padding: 20px;
  }
  .status-panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
