:root {
  font-family: "Manrope", "Kanit", sans-serif;
  color: #15202a;
  background: #dce9f2;
  font-synthesis: none;
  --lime: #f27b3d;
  --muted: #60717e;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; position: relative; overflow-x: hidden; background: #dce9f2; user-select: none; -webkit-user-select: none; }
input, textarea, [contenteditable="true"] { user-select: text; -webkit-user-select: text; }
button, a { -webkit-user-drag: none; }
.backdrop { position: fixed; inset: 0; z-index: 0; background: url("Bg.png") center 48% / cover no-repeat; transform: scale(1.01); animation: background-arrive 1.5s cubic-bezier(.2,.7,.2,1) both; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,28,43,.48), rgba(13,28,43,.12) 48%, rgba(13,28,43,.29)), linear-gradient(0deg, rgba(13,28,43,.38), transparent 55%); }
.snowfall { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: .82; }
.topbar, .page-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.topbar { height: 88px; padding: 0 7.2vw; border-bottom: 1px solid rgba(255,255,255,.1); animation: fade-in .75s .12s both; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: min(190px, 42vw); height: auto; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,.22)); }
.welcome-kicker, .card-topline, .page-footer { font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(212,246,106,.7); }
.layout { position: relative; z-index: 1; min-height: calc(100vh - 148px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, 440px); align-items: center; gap: clamp(50px, 10vw, 160px); width: min(1120px, 85vw); margin: 0 auto; padding: 45px 0; }
.welcome { max-width: 590px; padding-bottom: 12px; animation: rise-in .8s .22s both; }
.welcome-kicker { display: flex; align-items: center; gap: 12px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.welcome-kicker span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; color: #fff; background: rgba(23,47,66,.25); font: 700 10px "Manrope", sans-serif; letter-spacing: 0; }
h1 { margin: 28px 0 18px; color: white; font: 500 clamp(38px, 5.2vw, 68px)/1.28 "Kanit", sans-serif; letter-spacing: -.04em; text-shadow: 0 3px 20px rgba(0,0,0,.48); }
h1 em { color: #ff9968; font-style: normal; }
.welcome > p { margin: 0; color: #fff; font: 300 16px/1.9 "Kanit", sans-serif; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.welcome-rule { display: flex; align-items: center; gap: 14px; margin-top: 52px; color: rgba(255,255,255,.85); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.welcome-rule span { width: 42px; height: 1px; background: var(--lime); }
.form-card { padding: 36px 38px 25px; border: 1px solid rgba(255,255,255,.84); border-radius: 6px 24px 6px 24px; color: #172633; background: linear-gradient(145deg, rgba(250,253,255,.91), rgba(222,237,247,.88)); box-shadow: 0 30px 90px rgba(20,40,58,.28), inset 0 1px #fff; backdrop-filter: blur(15px); animation: rise-in .85s .38s both; }
.card-topline { display: flex; justify-content: space-between; color: #d9622e; font-size: 9px; }
.step { color: #71818c; }
.step b { padding: 0 4px; color: #aab9c3; }
h2 { margin: 18px 0 2px; font: 500 30px/1.5 "Kanit", sans-serif; }
.subheading { margin: 0 0 27px; color: var(--muted); font: 300 13px "Kanit", sans-serif; }
.field { margin-top: 18px; }
label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; color: #314553; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
label span { color: #73838d; font: 300 11px "Kanit", sans-serif; letter-spacing: 0; }
.input-box { position: relative; display: flex; align-items: center; height: 49px; border: 1px solid rgba(69,91,106,.24); border-radius: 4px 11px 4px 11px; background: rgba(255,255,255,.58); transition: border-color .2s, background .2s, box-shadow .2s; }
.input-box:focus-within { border-color: rgba(225,105,53,.85); background: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(225,105,53,.1); }
.input-icon { flex: 0 0 auto; width: 17px; height: 17px; margin-left: 14px; color: #71828c; font: 600 14px "Manrope", sans-serif; }
.input-icon path, .input-icon rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
input { min-width: 0; flex: 1; height: 100%; padding: 0 12px; border: 0; outline: 0; color: #172633; background: transparent; font: 300 13px "Kanit", sans-serif; }
input::placeholder { color: #8b9aa3; }
.reveal { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 4px; border: 0; color: #90998d; background: transparent; cursor: pointer; }
.reveal:hover { color: #d9622e; }
.reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.submit { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; height: 51px; margin-top: 27px; border: 0; border-radius: 4px 12px 4px 12px; color: white; background: #e66d38; font: 500 15px "Kanit", sans-serif; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.submit svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.submit:hover { transform: translateY(-2px); background: #f17b45; box-shadow: 0 9px 26px rgba(196,87,42,.25); }
.submit:disabled { opacity: .68; cursor: wait; transform: none; box-shadow: none; }
.submit:hover svg { transform: translateX(3px); }
.submit:active { transform: translateY(0); }
.card-footer { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 21px; color: #788791; font: 300 10px "Kanit", sans-serif; }
.status-dot { width: 5px; height: 5px; background: #e66d38; box-shadow: none; }
.page-footer { min-height: 60px; padding: 0 7.2vw; color: rgba(255,255,255,.82); font-size: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.65); animation: fade-in .75s .55s both; }
@keyframes background-arrive { from { opacity: .55; transform: scale(1.055); } to { opacity: 1; transform: scale(1.01); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 850px) { .layout { width: min(660px, 88vw); grid-template-columns: 1fr; gap: 28px; padding: 48px 0; } .welcome { padding: 0; } h1 { margin: 18px 0 7px; font-size: clamp(37px, 8vw, 54px); } .welcome > p { font-size: 14px; } .welcome-rule { display: none; } .form-card { width: 100%; max-width: 480px; justify-self: center; } }
@media (max-width: 520px) { .topbar { height: 70px; padding: 0 20px; } .layout { width: calc(100% - 36px); padding: 36px 0; gap: 22px; } .welcome-kicker { font-size: 8px; } h1 { font-size: 37px; } .welcome > p { font-size: 12px; } .form-card { padding: 27px 22px 21px; } h2 { font-size: 27px; } .page-footer { min-height: 46px; padding: 0 20px; font-size: 7px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (prefers-reduced-motion: reduce) { .backdrop, .topbar, .welcome, .form-card, .page-footer { animation: none !important; } .snowfall { display: none; } }

/* Mobile layout: keep the complete registration flow comfortable on touch screens. */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100svh; }

@media (max-width: 600px) {
  .topbar {
    height: 64px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .brand-logo { width: min(164px, 48vw); }

  .layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 30px 18px 26px;
  }

  .welcome {
    max-width: 540px;
    padding: 0;
  }

  .welcome-kicker { gap: 9px; font-size: 9px; letter-spacing: .12em; }
  .welcome-kicker span { width: 27px; height: 27px; }
  h1 { margin: 14px 0 6px; font-size: clamp(34px, 10vw, 48px); line-height: 1.16; }
  .welcome > p { max-width: 34ch; font-size: 14px; line-height: 1.65; }
  .welcome-rule { display: none; }

  .form-card {
    align-self: center;
    width: 100%;
    max-width: 520px;
    padding: 25px 21px 22px;
    border-radius: 7px 20px 7px 20px;
    backdrop-filter: blur(12px);
  }

  h2 { margin-top: 14px; font-size: 28px; }
  .subheading { margin-bottom: 21px; }
  .field { margin-top: 15px; }
  label { font-size: 9px; }
  .input-box { height: 52px; }
  input { padding-left: 10px; font-size: 16px; }
  .submit { min-height: 52px; margin-top: 23px; font-size: 16px; }
  .card-footer { flex-wrap: wrap; line-height: 1.5; text-align: center; }

  .page-footer {
    min-height: auto;
    flex-wrap: wrap;
    gap: 9px 18px;
    padding: 13px max(18px, env(safe-area-inset-right)) calc(15px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: .1em;
  }
}

@media (max-width: 360px) {
  .layout { padding-left: 14px; padding-right: 14px; }
  .form-card { padding-left: 17px; padding-right: 17px; }
  .card-topline { font-size: 8px; letter-spacing: .11em; }
  .input-icon { margin-left: 10px; }
  .page-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 850px) and (max-height: 620px) and (orientation: landscape) {
  .welcome { display: none; }
  .layout { justify-content: center; padding-top: 16px; padding-bottom: 16px; }
  .page-footer { justify-content: center; }
}
