:root{
  --navy:#0b2239;
  --navy-2:#123a5a;
  --navy-3:#184d73;
  --blue:#2563eb;
  --teal:#0d9488;
  --green:#16a34a;
  --green-soft:#eaf8ef;
  --sky-soft:#eef6ff;
  --yellow:#f59e0b;
  --red:#dc2626;
  --red-soft:#fff1f2;
  --ink:#172033;
  --muted:#5c697a;
  --surface:#ffffff;
  --surface-2:#f8fbfe;
  --line:#dde6ee;
  --line-strong:#cbd9e5;
  --shadow:0 20px 60px rgba(11,34,57,.10);
  --shadow-soft:0 8px 24px rgba(11,34,57,.06);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
}

*{box-sizing:border-box}

html{
  min-height:100%;
  scroll-behavior:smooth;
}

body{
  min-height:100%;
  margin:0;
  color:var(--ink);
  font-family:"Noto Sans Thai",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.72;
  letter-spacing:.01em;
  background:
    radial-gradient(circle at 4% 5%, rgba(37,99,235,.09), transparent 26rem),
    radial-gradient(circle at 96% 10%, rgba(13,148,136,.09), transparent 24rem),
    linear-gradient(180deg,#f7fbff 0%,#f8fcfb 56%,#ffffff 100%);
  -webkit-font-smoothing:antialiased;
}

a{text-decoration:none}
button,input,select{font:inherit}

.skip-link{
  position:fixed;
  top:-80px;
  left:12px;
  z-index:9999;
  padding:10px 16px;
  border:2px solid var(--navy);
  border-radius:10px;
  color:var(--navy);
  background:#fff;
  font-weight:800;
}
.skip-link:focus{top:12px}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid rgba(11,34,57,.07);
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(16px);
}

.header-row{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--navy);
}
.brand:hover{color:var(--navy)}

.brand-logo-wrap{
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #dbe7ef;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(11,34,57,.08);
}

.brand-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  display:block;
}

.brand-copy strong{
  display:block;
  font-size:1.05rem;
  font-weight:800;
  line-height:1.15;
}
.brand-copy small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.77rem;
  font-weight:600;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.header-link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:.68rem 1rem;
  border:1px solid var(--line-strong);
  border-radius:12px;
  color:#415166;
  background:#fff;
  font-size:.84rem;
  font-weight:800;
}
.header-link:hover{
  border-color:#a8bac9;
  color:var(--navy);
  background:#f9fcff;
}
.header-link.primary{
  color:#fff;
  border-color:var(--navy);
  background:linear-gradient(135deg,var(--navy),var(--navy-3));
}
.header-link.primary:hover{
  color:#fff;
  background:var(--navy-2);
}

.noscript-box{
  margin-top:14px;
  padding:11px 13px;
  border:1px solid #fecaca;
  border-radius:12px;
  color:#991b1b;
  background:#fef2f2;
  font-size:.82rem;
  font-weight:700;
}

.register-page{
  padding:28px 0 42px;
}

.register-hero{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:18px;
  margin-bottom:18px;
}

.hero-main,
.hero-side{
  padding:26px 28px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:var(--radius-xl);
  background:#fff;
  box-shadow:var(--shadow-soft);
}

.hero-main{
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.08), transparent 16rem),
    linear-gradient(135deg,#ffffff 0%,#fbfdff 100%);
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  color:var(--teal);
  background:#eefbf8;
  border:1px solid #ccefe8;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
}

.register-hero h1{
  margin:14px 0 0;
  color:var(--navy);
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.03em;
}

.hero-lead{
  max-width:720px;
  margin:12px 0 0;
  color:var(--muted);
  font-size:.97rem;
}

.hero-side{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
  background:
    linear-gradient(180deg,#ffffff,#f8fbff);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  align-self:flex-start;
  padding:10px 14px;
  border-radius:999px;
  color:#0b7a4b;
  border:1px solid #bcebd0;
  background:#effcf5;
  font-size:.82rem;
  font-weight:800;
}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.metric-card{
  padding:16px 12px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.metric-card strong{
  display:block;
  color:var(--navy);
  font-size:1.12rem;
  font-weight:800;
}
.metric-card span{
  display:block;
  margin-top:4px;
  color:#65758a;
  font-size:.72rem;
  line-height:1.35;
  font-weight:700;
}

.benefit-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:18px;
}

.benefit-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:18px 18px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}

.benefit-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:13px;
  color:var(--navy-3);
  background:#eef5fa;
  font-size:19px;
}

.benefit-item strong{
  display:block;
  color:var(--navy);
  font-size:.90rem;
  font-weight:800;
}
.benefit-item small{
  display:block;
  margin-top:4px;
  color:#66768a;
  font-size:.74rem;
  line-height:1.55;
  font-weight:600;
}

.form-shell{
  padding:28px;
  border:1px solid rgba(255,255,255,.96);
  border-radius:var(--radius-xl);
  background:#fff;
  box-shadow:var(--shadow);
}

.form-intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.78fr);
  gap:20px;
  align-items:start;
  margin-bottom:20px;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
}

.section-kicker{
  display:inline-block;
  margin-bottom:7px;
  color:var(--teal);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.05em;
}

.form-intro h2{
  margin:0;
  color:var(--navy);
  font-size:1.6rem;
  line-height:1.3;
  font-weight:800;
}

.form-intro p{
  max-width:760px;
  margin:8px 0 0;
  color:var(--muted);
  font-size:.87rem;
}

.intro-right{
  display:grid;
  gap:10px;
}

.quick-step{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfdff;
}

.quick-step span{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy-3));
  font-size:.86rem;
  font-weight:800;
}

.quick-step p{margin:0}
.quick-step strong{
  display:block;
  color:var(--navy);
  font-size:.82rem;
  font-weight:800;
}
.quick-step small{
  display:block;
  margin-top:2px;
  color:#6a7a8e;
  font-size:.71rem;
  line-height:1.45;
  font-weight:600;
}

.alert-message{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-bottom:17px;
  padding:14px 15px;
  border:1px solid #fecdd3;
  border-radius:14px;
  color:#9f1239;
  background:var(--red-soft);
}

.alert-message.success{
  border-color:#bbefd1;
  color:#067647;
  background:#effcf5;
}
.alert-message.warning{
  border-color:#fde68a;
  color:#92400e;
  background:#fffbeb;
}
.alert-message.info{
  border-color:#bfdbfe;
  color:#1e40af;
  background:#eff6ff;
}

.alert-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:10px;
  background:rgba(255,255,255,.7);
}
.alert-message strong{
  display:block;
  font-size:.82rem;
  font-weight:800;
}
.alert-message p{
  margin:3px 0 0;
  font-size:.75rem;
  line-height:1.55;
  font-weight:600;
}

.form-section{
  margin:0;
  padding:22px 22px 24px;
  border:1px solid #e0e8ef;
  border-radius:20px;
  background:#fbfdff;
}

.form-section + .form-section{
  margin-top:18px;
}

.form-section legend{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  color:#344256;
  font-size:.86rem;
  font-weight:800;
}
.form-section legend::after{
  content:"";
  height:1px;
  flex:1;
  background:var(--line);
}
.form-section legend span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:var(--navy-2);
  background:#eef5fa;
}

.form-label{
  margin-bottom:.40rem;
  color:#45556a;
  font-size:.79rem;
  font-weight:800;
}
.required-mark{color:var(--red)}

.form-control,
.form-select{
  min-height:50px;
  border:1.5px solid #cfdae5;
  border-radius:13px;
  color:var(--ink);
  background:#fff;
  font-size:.88rem;
  font-weight:600;
  box-shadow:none!important;
}
.form-control::placeholder{color:#8696aa;font-weight:500}

.form-control:focus,
.form-select:focus{
  border-color:#477ba0;
  box-shadow:0 0 0 4px rgba(71,123,160,.11)!important;
}

.form-control.is-invalid,
.form-select.is-invalid{
  border-color:#dc3545;
  background-image:none;
}

.form-help{
  margin-top:5px;
  color:#738195;
  font-size:.68rem;
  line-height:1.5;
  font-weight:600;
}
.invalid-feedback{
  margin-top:5px;
  font-size:.68rem;
  font-weight:700;
}

.password-field{
  position:relative;
}
.password-field .form-control{
  padding-right:48px;
}
.password-toggle{
  position:absolute;
  top:50%;
  right:4px;
  z-index:3;
  width:39px;
  height:38px;
  transform:translateY(-50%);
  border:0;
  border-radius:9px;
  color:#65758a;
  background:transparent;
}
.password-toggle:hover,
.password-toggle:focus-visible{
  color:var(--navy);
  background:#eef4f8;
}

.password-meter{
  padding:12px 13px;
  border:1px solid #e1e8ef;
  border-radius:13px;
  background:#fff;
}
.password-meter-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#526176;
  font-size:.70rem;
  font-weight:700;
}
.password-meter-top strong{
  color:#6b7280;
  font-weight:800;
}
.pw-bar{
  height:7px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}
.pw-fill{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--red);
  transition:width .18s ease,background-color .18s ease;
}
.pw-fill.strength-1{width:25%;background:#dc2626}
.pw-fill.strength-2{width:50%;background:#f59e0b}
.pw-fill.strength-3{width:75%;background:#0d9488}
.pw-fill.strength-4{width:100%;background:#16a34a}

.consent-box{
  padding:16px 17px;
  border:1px solid #d6e6f4;
  border-radius:15px;
  background:#f7fbff;
}
.consent-box .form-check-label{
  color:#4b5b70;
  font-size:.75rem;
  line-height:1.68;
  font-weight:600;
}
.form-check-input{
  margin-top:.25em;
  border-color:#9db0c0;
}
.form-check-input:checked{
  border-color:var(--blue);
  background-color:var(--blue);
}

.security-note{
  display:flex;
  gap:10px;
  margin-top:12px;
  padding:12px 13px;
  border-radius:13px;
  color:#536277;
  background:#f8fafc;
  font-size:.68rem;
  line-height:1.55;
}
.security-note > i{
  margin-top:2px;
  color:#047857;
}
.security-note p{margin:0}
.security-note strong{
  display:block;
  color:#334155;
  font-weight:800;
}

.submit-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.submit-note{
  max-width:420px;
  color:#738195;
  font-size:.72rem;
  line-height:1.55;
  font-weight:600;
}

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

.btn-register-main,
.btn-login-main{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:.8rem 1.2rem;
  border-radius:13px;
  font-size:.86rem;
  font-weight:800;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn-register-main{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#123a5a,#17698a 55%,#0d9488);
  box-shadow:0 12px 28px rgba(18,58,90,.20);
}
.btn-register-main:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 15px 32px rgba(18,58,90,.27);
}
.btn-register-main:disabled{
  cursor:not-allowed;
  opacity:.7;
}
.btn-login-main{
  border:1.5px solid #b9cbd8;
  color:var(--navy);
  background:#fff;
}
.btn-login-main:hover{
  border-color:var(--navy);
  color:#fff;
  background:var(--navy);
}

.site-footer{
  padding:20px 0 28px;
}
.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-top:18px;
  border-top:1px solid rgba(11,34,57,.08);
  color:#6d7d90;
  font-size:.72rem;
}
.footer-row strong{
  display:block;
  color:#415166;
  font-size:.78rem;
  font-weight:800;
}
.footer-row span{
  display:block;
  margin-top:3px;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:14px;
}
.footer-links a{
  color:#5b6b7e;
  font-weight:700;
}
.footer-links a:hover{color:var(--navy)}

[hidden]{display:none!important}

@media (max-width:1199.98px){
  .register-hero{
    grid-template-columns:1fr;
  }
  .hero-metrics{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .form-intro{
    grid-template-columns:1fr;
  }
}

@media (max-width:991.98px){
  .header-row{
    min-height:78px;
  }
  .benefit-strip{
    grid-template-columns:1fr;
  }
  .submit-bar{
    flex-direction:column;
    align-items:flex-start;
  }
  .submit-actions{
    width:100%;
  }
  .submit-actions .btn-register-main,
  .submit-actions .btn-login-main{
    width:100%;
  }
}

@media (max-width:767.98px){
  body{font-size:15.5px}
  .header-row{
    min-height:74px;
    gap:12px;
  }
  .brand-logo-wrap{
    width:50px;
    height:50px;
    border-radius:14px;
  }
  .brand-logo{
    width:46px;
    height:46px;
  }
  .brand-copy small{display:none}

  .header-actions{
    gap:8px;
  }
  .header-link{
    min-height:40px;
    padding:.62rem .82rem;
    font-size:.80rem;
  }
  .header-link span{
    display:none;
  }
  .header-link{
    width:40px;
    padding:0;
  }

  .register-page{
    padding:18px 0 28px;
  }
  .hero-main,
  .hero-side,
  .form-shell{
    padding:20px;
    border-radius:22px;
  }
  .register-hero h1{
    font-size:2rem;
  }
  .hero-metrics{
    grid-template-columns:1fr;
  }
  .form-section{
    padding:18px 16px 20px;
    border-radius:16px;
  }
  .form-section legend{
    font-size:.82rem;
  }
  .footer-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .footer-links{
    justify-content:flex-start;
  }
}

@media (max-width:460px){
  .hero-main,
  .hero-side,
  .form-shell{
    padding:16px;
  }
  .register-hero h1{
    font-size:1.78rem;
  }
  .hero-lead,
  .form-intro p{
    font-size:.82rem;
  }
  .metric-card{
    padding:14px 10px;
  }
  .benefit-item{
    padding:14px;
  }
  .form-control,
  .form-select{
    min-height:48px;
    font-size:.85rem;
  }
}

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