@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-900.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --peach: #eacccc;
  --cream: #fffaf9;
  --rose: #ff7fa2;
  --ink: #6d4a56;
  --ink-soft: #9c7b85;
  --line: #f0d6da;
  --shadow: 0 18px 40px rgba(190, 120, 140, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', sans-serif;
  color: var(--ink);
  background-color: var(--peach);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #f7dfe4 0%, transparent 55%),
    radial-gradient(90% 60% at 10% 100%, #ffeef2 0%, transparent 60%),
    var(--peach);
  user-select: none;
}
.home::before, .home::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.home::before { width: 46vw; height: 46vw; left: -14vw; top: -16vw; animation: float 18s ease-in-out infinite; }
.home::after  { width: 30vw; height: 30vw; right: -8vw; bottom: -10vw; background: rgba(255,255,255,.4); animation: float 22s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(2vw,2vh,0); } }

.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(18px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; color: #7a4d5b; text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb3c6, #ff7fa2);
  box-shadow: 0 4px 10px rgba(255,127,162,.45);
  position: relative;
}
.brand .dot::after { content:''; position:absolute; width:9px; height:9px; border-radius:50%; background:#fff; top:5px; left:6px; opacity:.85; }
.brand small { display:block; font-weight:500; font-size:11px; color: var(--ink-soft); letter-spacing: 2px; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .5s ease, box-shadow .5s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color:#fff; background: linear-gradient(135deg,#ff9db6,#ff7096); box-shadow: 0 10px 22px rgba(255,112,150,.35); }
.btn-ghost { color:#8a5a68; background: rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.9); box-shadow: 0 8px 18px rgba(200,140,155,.16); }

.stage {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 4vh, 40px);
  padding: 10px 4vw 8vh;
}
.clock { display: flex; align-items: center; }
.clock p {
  width: .66em;
  font-family: 'Kanit', 'Arial Black', 'Impact', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 13.5vw, 168px);
  line-height: 1; color: #fff; text-align: center;
  text-shadow:
    0 1px 0 #deafaf, 0 2px 0 #bda8a8, 0 3px 0 #d8a1a1, 0 4px 0 #d59999,
    0 5px 0 #d29292, 0 6px 0 #cf8b8b, 0 7px 0 #cc8484, 0 8px 0 #c97d7d,
    0 0 5px rgba(231,156,156,.05), 0 -1px 3px rgba(231,156,156,.2),
    0 9px 9px rgba(231,156,156,.3), 0 12px 12px rgba(231,156,156,.3),
    0 15px 15px rgba(231,156,156,.3);
  animation: digitIn .7s cubic-bezier(.2,.8,.3,1) both;
}
.clock p.sep { width: .3em; color:#fff; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,45% { opacity:1; } 55%,100% { opacity:.62; } }
@keyframes digitIn { from { opacity:0; transform: translateY(14px) scale(.96); } to { opacity:1; transform:none; } }

.date-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font-size: clamp(14px,1.6vw,17px); color:#8a5a68; letter-spacing:1px; }
.date-line .pill { padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.62); box-shadow: 0 10px 24px rgba(200,140,155,.18); }
.date-line .greet { font-weight: 700; color:#b95d76; }
.tip { font-size: 13px; color:#a2828c; }
.site-footer { position: relative; z-index: 3; padding: 0 24px 26px; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:12px; color:#ab8b94; letter-spacing:1px; }
.site-footer .sf-legal { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.site-footer .sf-dot { margin: 0 8px; opacity: .65; }
.site-footer .sf-beian { color:#9a6776; text-decoration:none; border-bottom:1px dotted rgba(185,93,118,.5); transition: color .2s; }
.site-footer .sf-beian:hover { color:#b95d76; }

.who {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.72); box-shadow: 0 8px 18px rgba(200,140,155,.16);
  font-size: 13px; font-weight: 600; color:#8a5a68;
}
.who .avatar { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background: linear-gradient(135deg,#ffb3c6,#ff7fa2); color:#fff; font-size:13px; font-weight:700; }
.nav-actions { display:flex; align-items:center; gap:10px; }

.login-page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(80% 60% at 15% 10%, #ffe7ee 0%, transparent 60%),
    radial-gradient(70% 60% at 90% 90%, #fff3f5 0%, transparent 60%),
    var(--peach);
}
.login-card {
  width: 100%; max-width: 410px; padding: clamp(24px,5vw,38px);
  border-radius: 28px; background: rgba(255,252,251,.92);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8);
}
.login-head { display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:26px; text-align:center; }
.login-head .badge {
  width:54px; height:54px; border-radius:18px; display:grid; place-items:center;
  font-family:'Kanit',sans-serif; font-weight:900; font-size:14px; color:#fff;
  background: linear-gradient(135deg,#ffb0c4,#ff7295); box-shadow: 0 12px 24px rgba(255,114,149,.35);
}
.login-head h1 { font-size: 21px; letter-spacing:1px; color:#744b58; }
.login-head p { font-size:13px; color: var(--ink-soft); }

.field { margin-bottom: 16px; }
.field label { display:block; font-size:12px; font-weight:700; letter-spacing:1px; color:#8d5f6c; margin-bottom:8px; }
.field .input-wrap {
  position: relative;
  display:flex; align-items:center; gap:10px; padding:0 2px; height:48px;
  border-radius:0; background:transparent;
  border:none; border-bottom:1px solid rgba(109, 74, 86, .22);
  transition: border-color .5s;
}
.field .input-wrap::after {
  content:''; position:absolute; left:0; bottom:-1px; width:100%; height:2px;
  background:#ff7fa2; transform:scaleX(0); transform-origin:left center;
  transition: transform .5s ease;
}
.field .input-wrap:focus-within { border-bottom-color:#ffb0c4; }
.field .input-wrap:focus-within::after { transform:scaleX(1); }
.field input {
  flex:1; min-width:0; height:100%; border:none; outline:none; background:none;
  font-size:15px; color: var(--ink); font-family: inherit;
}
.field input::placeholder { color:#bb9aa3; }
.field textarea {
  flex:1; min-width:0; width:100%; border:none; outline:none; background:none; resize:vertical;
  padding:13px 0; font-size:15px; color: var(--ink); font-family: inherit; line-height:1.6;
}
.field textarea::placeholder { color:#bb9aa3; }
.field .input-wrap:has(textarea) { align-items:stretch; height:auto; padding:0 2px; }

.login-btn {
  width:100%; height:50px; margin-top:8px; border-radius:14px;
  font-size:15px; font-weight:700; letter-spacing:2px; color:#fff;
  background: linear-gradient(135deg,#ffa1ba,#ff6f95);
  box-shadow: 0 14px 26px rgba(255,111,149,.32);
  transition: transform .5s, box-shadow .5s;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(255,111,149,.4); }
.login-btn.is-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.form-error {
  margin-top:14px; padding:10px 14px; border-radius:12px;
  background:#fff0f3; border:1px solid #ffd3dd; color:#d9536f; font-size:13px;
}
.login-foot { margin-top:20px; text-align:center; font-size:12px; color:#ac8b95; line-height:1.7; }
.login-foot a { color:#d26781; font-weight:600; white-space:nowrap; }

.hint-box {
  margin-top:16px; font-size:12px; color:#a9828e;
  background:#fff6f8; border:1px dashed #f3ced6; border-radius:12px; padding:10px 14px;
}
.hint-box summary { cursor:pointer; font-weight:600; color:#b56a80; outline:none; }
.hint-box ul { margin:8px 0 0 16px; line-height:1.9; }

@media (max-width: 560px) {
  .topbar { padding:16px 18px; }
  .brand small { display:none; }
  .btn { padding:9px 14px; font-size:13px; }
  .clock p { font-size: clamp(46px, 15vw, 96px); }
  .stage { gap:22px; padding-bottom:10vh; }
  .date-line { text-align:center; gap:8px; }
  .login-page { padding: 20px 16px; align-items: center; justify-content: center; }
}
@media (max-width: 380px) {
  .nav-actions .btn-ghost { display:none; }
}

.field .input-wrap select {
  flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: none;
  font-size: 14px; color: var(--ink); font-family: inherit; cursor: pointer;
}
.field .input-wrap input[readonly] { color: var(--ink-soft); }
.form-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  background: #eefaf2; border: 1px solid #cfecd9; color: #3f8a5f; font-size: 13px;
}
.form-note.is-err { background:#fff0f3; border-color:#ffd3dd; color:#d9536f; }
.login-foot .foot-sep { margin: 0 6px; color: #d8bcc4; }

.nf-card { text-align: center; }
.nf-code {
  font-family: 'Kanit', 'Arial Black', 'Impact', sans-serif;
  font-weight: 900; font-size: clamp(56px, 16vw, 84px); line-height: 1;
  letter-spacing: 3px; color: #ff8fab;
  text-shadow: 0 2px 0 #ffd9e3, 0 4px 0 #f6c3d0, 0 10px 22px rgba(255,114,149,.30);
  margin: 2px 0 12px;
}
.nf-card h1 { font-size: 21px; letter-spacing: 1px; color: #744b58; }
.nf-tip { margin-top: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.75; }

.nf-loader { position: relative; width: 270px; height: 92px; margin: 16px auto 22px; }
.nf-loader span { position: absolute; border-radius: 50%; left: calc(var(--i) * 60px); }
.nf-loader .ball {
  bottom: 62px; width: 30px; height: 30px;
  background: linear-gradient(135deg, #ffc2d2, #ff7fa2);
  box-shadow: 0 6px 12px rgba(255,120,150,.28);
  animation: nfJump 2s linear infinite calc(var(--i) * .3s);
}
.nf-loader .shadow {
  bottom: -9px; width: 30px; height: 15px; background: #c98a9c;
  animation: nfShadow 2s linear infinite calc(var(--i) * .3s);
}
@keyframes nfJump {
  0%, 100% { bottom: 62px; height: 30px; }
  40%, 60% { bottom: 0; height: 30px; }
  50% { height: 16px; filter: brightness(1.15); }
}
@keyframes nfShadow {
  0%, 100% { transform: scale(2); opacity: .1; filter: blur(5px); }
  40%, 60% { transform: scale(1); opacity: .95; filter: blur(2px); }
}

.nf-actions { display: flex; gap: 10px; margin-top: 4px; }
.nf-actions .btn { flex: 1; height: 46px; }

@media (max-width: 480px) {
  .nf-loader { margin: 10px auto 14px; }
  .nf-tip br { display: none; }
}

.au-site-brand {
  position: fixed; top: 30px; left: 30px; z-index: 9;
  color: #7a4d5b; text-decoration: none; cursor: pointer;
}

.au-wrap {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(80% 60% at 15% 10%, #ffe7ee 0%, transparent 60%),
    radial-gradient(70% 60% at 90% 90%, #fff3f5 0%, transparent 60%),
    var(--peach);
}
.au-card {
  position: relative; width: 660px; max-width: 100%; height: 420px;
  background: #fffcfb; border-radius: 26px;
  box-shadow: 0 26px 54px rgba(190, 120, 140, .22);
  border: 1px solid rgba(255, 255, 255, .9);
}
.au-panel {
  position: absolute; top: 50%; left: 44px; transform: translateY(-50%);
  width: 336px; height: 520px; overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  padding: 0; border-radius: 24px; color: var(--ink);
  background: rgba(255, 252, 251, .96);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 22px 44px rgba(190, 120, 140, .22);
  transition: left .5s cubic-bezier(.3, .8, .25, 1), height .5s cubic-bezier(.3, .8, .25, 1);
  animation: auIn .55s cubic-bezier(.2, .8, .3, 1) both;
}
.au-panel.is-reg { left: calc(100% - 380px); }
@keyframes auIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.au-form {
  display: none; position: absolute; inset: 0; box-sizing: border-box;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 78px 30px 34px;
}
.au-form.is-on { display: flex; }

.au-brand {
  position: absolute; top: 30px; left: 30px; right: 30px; margin: 0;
  color: inherit; text-decoration: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.au-mark {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffb0c4, #ff7295); color: #fff;
  font-family: 'Kanit', sans-serif; font-weight: 900; font-size: 11px; letter-spacing:0;
  box-shadow: 0 10px 18px rgba(255, 114, 149, .3);
}
.au-brand small { font-size: 10px; letter-spacing: 2.4px; color: var(--ink-soft); }
.au-form h1 {
  position: absolute; top: 42px; left: 0; right: 0; margin: 0; text-align: center;
  font-size: 20px; letter-spacing: 7px; text-indent: 7px; font-weight: 700; color: #e5517a;
}
.au-mode { width: 100%; }

.au-seg {
  display: flex; width: 100%; gap: 4px; padding: 3px; margin: 60px 0 42px;
  box-sizing: border-box; border-radius: 12px; background: rgba(229, 81, 122, .07);
}
.au-seg button {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: #b07f8d;
  padding: 7px 0; border-radius: 9px; transition: background .5s, color .5s, box-shadow .5s;
}
.au-seg button.is-on {
  background: #fff; color: #e5517a; box-shadow: 0 2px 8px rgba(229, 81, 122, .16);
}
.au-seg button:focus-visible { outline: 2px solid rgba(229, 81, 122, .35); outline-offset: 1px; }

.au-form[data-form="register"] .au-field { margin: 3px 0; }
.au-form[data-form="register"] .au-btn { margin-top: 10px; }
.au-note { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .4px; margin: -2px 0 10px; text-align: center; }

.au-field { position: relative; width: 100%; margin: 7px 0; }
.au-field input {
  width: 100%; height: 42px; border: none; outline: none; background: transparent;
  border-bottom: 1px solid rgba(109, 74, 86, .22);
  color: var(--ink); font-family: inherit; font-size: 14px; letter-spacing: .6px;
  padding: 15px 2px 4px; transition: border-color .5s;
}
.au-field label {
  position: absolute; left: 2px; bottom: 11px; font-size: 13.5px; letter-spacing: .6px;
  color: var(--ink-soft); pointer-events: none;
  transition: all .5s ease; white-space: nowrap; max-width: 100%;
}
.au-field input:focus ~ label,
.au-field input:valid ~ label { transform: translateY(-21px); font-size: 11.5px; color: #e5517a; }
.au-field input[readonly] ~ label,
.au-field input:disabled ~ label { transform: translateY(-21px); font-size: 11.5px; color: #e5517a; }
.au-field input[readonly] ~ .au-line,
.au-field input:disabled ~ .au-line { transform: scaleX(1); }
.au-field .au-line {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
  background: #ff7fa2; transform: scaleX(0); transform-origin: left center; transition: transform .5s ease;
}
.au-field input:focus ~ .au-line,
.au-field input:valid ~ .au-line { transform: scaleX(1); }
.au-field input:-webkit-autofill,
.au-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  transition: background-color 9999s ease-out;
}
.au-field.is-opt input:valid ~ label { transform: none; font-size: 13.5px; color: var(--ink-soft); }
.au-field.is-opt input:focus ~ label,
.au-field.is-opt input:not(:placeholder-shown) ~ label { transform: translateY(-21px); font-size: 11.5px; color: #e5517a; }
.au-field.is-opt input:valid ~ .au-line { transform: scaleX(0); }
.au-field.is-opt input:focus ~ .au-line,
.au-field.is-opt input:not(:placeholder-shown) ~ .au-line { transform: scaleX(1); }

.au-field.is-code input { padding-right: 96px; }
.au-code-btn {
  position: absolute; right: 0; bottom: 12px;
  font: inherit; font-size: 11.5px; letter-spacing: .4px; color: #e5517a;
  background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
}
.au-code-btn:hover:not(:disabled) { text-decoration: underline; }
.au-code-btn:disabled { color: #bb9fa8; cursor: default; }

.au-field.is-cap { margin: -4px 0 11px; }
.au-field.is-cap input { padding-right: 132px; letter-spacing: 2px; }
.au-cap {
  position: absolute; right: 0; bottom: 3px;
  width: 120px; height: 34px; border-radius: 9px;
  display: block; cursor: pointer; background: #fffafb;
  -webkit-user-select: none; user-select: none;
  box-shadow: 0 0 0 1px rgba(229, 81, 122, .16);
  transition: box-shadow .3s ease, transform .3s ease;
}
.au-cap:hover { box-shadow: 0 0 0 1px rgba(229, 81, 122, .42); }
.au-cap:active { transform: scale(.97); }
.au-second-tip {
  margin: -1px 0 2px; font-size: 11.5px; line-height: 1.55; letter-spacing: .3px;
  color: #b06a80; text-align: left;
}
@media (max-width: 520px) {
  .au-field.is-cap input { padding-right: 116px; }
  .au-cap { width: 104px; height: 32px; bottom: 4px; }
}

.pw-eye {
  flex: none;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 8px; background: none;
  color: #a97b8b; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .5s, background .5s;
}
.pw-eye:hover { background: #fff2f6; color: #e5517a; }
.pw-eye[data-open="1"] { color: #e5517a; }
.au-field .pw-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.au-field.is-pw input { padding-right: 36px; }

.au-closed-text { width: 100%; margin: 6px 0 0; font-size: 16px; line-height: 1.8; color: var(--ink-soft); text-align: center; }
.au-closed-go { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 16px; text-decoration: none; }

.au-msg.is-off { opacity: 0; visibility: hidden; }
.au-msg {
  width: 100%; margin-top: 14px; padding: 6px 12px; border-radius: 12px;
  background: #fff0f3; border: 1px solid #ffd3dd;
  color: #d9536f; font-size: 11.5px; line-height: 1.45; text-align: center;
}
.au-msg.is-ok { color: #3f8a5f; background: #f1faf4; border-color: #cfe9d8; }
.au-form[data-form="login"] .au-msg {
  margin-top: 8px; padding: 6px 12px; font-size: 11.5px; line-height: 1.45;
  height: 46px; min-height: 46px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.au-form[data-form="register"] .au-msg {
  margin-top: 8px; padding: 6px 12px; font-size: 11.5px; line-height: 1.45;
  height: 46px; min-height: 46px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
}

.au-btn {
  width: 100%; height: 46px; margin-top: 24px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #ffa1ba, #ff6f95); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 3px;
  cursor: pointer; box-shadow: 0 14px 26px rgba(255, 111, 149, .32);
  transition: transform .5s ease, box-shadow .5s ease;
}
.au-btn:hover { background: linear-gradient(135deg, #ffb0c4, #ff7295); transform: translateY(-2px); box-shadow: 0 18px 32px rgba(255, 111, 149, .4); }
.au-btn:focus { outline: none; }
.au-btn:focus-visible { outline: 2px solid #ff9db6; outline-offset: 2px; }
.au-btn.is-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.au-form[data-form="register"] .au-btn { margin-top: 12px; transform: translateY(24px); }
.au-form[data-form="register"] .au-msg { transform: translateY(24px); }
.au-form[data-form="login"] .au-btn { margin-top: 8px; }
.au-form[data-form="login"] .au-field { transform: translateY(-20px); }
.au-form[data-form="login"] .au-field:not(.is-cap) { transform: translateY(-22px); }
.au-form[data-form="login"] .au-field.is-pw { transform: translateY(-23px); }
.au-form[data-form="login"].is-nocap { padding-top: 29px; }
.au-form[data-form="login"].is-nocap .au-btn,
.au-form[data-form="login"].is-nocap .au-msg { transform: translateY(49px); }

.au-links {
  position: absolute; left: 0; right: 0; bottom: 16px; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
  font-size: 12px; color: var(--ink-soft);
}
.au-links a { color: #d26781; border-bottom: 1px dashed #f0bcc8; padding-bottom: 1px; }
.au-links span { color: #d9b6bf; }

@keyframes auShake {
  0%, 100% { translate: 0 0; }
  15% { translate: -7px 0; }
  32% { translate: 6px 0; }
  48% { translate: -5px 0; }
  64% { translate: 4px 0; }
  80% { translate: -2px 0; }
}
.au-form.is-shake { animation: auShake .5s cubic-bezier(.36, .07, .19, .97) both; }
.au-links .au-to-reg,
.au-links .au-to-login,
.au-links .au-sep-reg { display: none; }

.au-links .au-home { text-align: center; }

.au-side {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 250px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: opacity .5s ease;
}
.au-side.on-right { right: 22px; }
.au-side.on-left { left: 22px; }
.au-side.is-off { opacity: 0; pointer-events: none; }
.au-num {
  font-family: 'Kanit', 'Arial Black', sans-serif; font-weight: 900; font-size: 84px; line-height: 1;
  color: #ffcad9; text-shadow: 0 3px 0 #ffe4eb, 0 14px 22px rgba(255, 140, 170, .25);
  margin-bottom: 12px;
}
.au-side h2 { font-size: 18px; color: #744b58; letter-spacing: 1px; }
.au-side p { margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; max-width: 232px; }
.au-switch {
  margin-top: 16px; padding: 10px 28px; border-radius: 999px;
  border: 1px solid #ff9db6; background: rgba(255, 255, 255, .72); color: #e5517a;
  font-size: 14px; font-weight: 600; transition: .5s;
}
.au-switch:hover { background: #ff9db6; color: #fff; }

.au-sheet {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  box-sizing: border-box; padding: 78px 26px 52px;
  background: #fffcfb; border-radius: inherit;
  opacity: 0; transform: translateY(34px); will-change: opacity, transform;
  transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
.au-sheet.is-up { opacity: 1; transform: translateY(0); }
.au-sheet[hidden] { display: none; }
.au-sheet-inner { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.au-sheet-inner:focus { outline: none; }
.au-sheet-sub { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.au-sheet .au-field { text-align: left; }
.au-sheet .au-field input { text-align: left; }
.au-sheet .au-msg { margin-top: 10px; min-height: 38px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.au-sheet .au-mark { display: none; }
.au-sheet h3 {
  position: absolute; top: 42px; left: 0; right: 0; margin: 0; text-align: center;
  font-size: 20px; font-weight: 700; color: #e5517a; letter-spacing: 7px; text-indent: 7px;
}
.au-steps { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; }
.au-steps li {
  position: relative; padding: 10px 0 10px 18px;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-soft);
  border-top: 1px solid #fbeef1;
}
.au-steps li:first-child { border-top: none; }
.au-steps li::before {
  content: ''; position: absolute; left: 2px; top: 16px;
  width: 6px; height: 6px; border-radius: 50%; background: #ff9db6;
}
.au-sheet .au-btn { margin-top: 6px; }
.au-sheet-foot {
  position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; font-size: 12px; color: var(--ink-soft);
  display: flex; justify-content: center; align-items: center; gap: 7px;
}
.au-sheet-foot a { color: #d26781; border-bottom: 1px dashed #f0bcc8; padding-bottom: 1px; }
.au-sheet-foot span { color: #d9b6bf; }

@media (max-width: 780px) {
  .au-wrap { padding: 20px 16px; align-items: center; justify-content: center; }
  .au-card { width: 100%; max-width: min(368px, 100%); height: auto; margin: 0 auto; background: none; border: none; box-shadow: none; }
  .au-panel, .au-panel.is-reg {
    position: static; top: auto; left: auto; transform: none; animation: none;
    width: 100%; height: 520px; min-height: 0; padding: 26px 22px 30px; border-radius: 26px;
  }
  .au-form[data-form="register"] .au-btn { margin-top: 12px; transform: none; }
  .au-form[data-form="register"] .au-msg { transform: none; }
  .au-form[data-form="login"].is-nocap { padding-top: 78px; }
  .au-form[data-form="login"].is-nocap .au-btn,
  .au-form[data-form="login"].is-nocap .au-msg { transform: none; }

  
  .au-side { display: none; }
  .au-links .au-to-reg,
  .au-links .au-to-login,
  .au-links .au-sep-reg { display: inline; }
}
.fp-wrap {
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.fp-card {
  position: relative; width: 336px; margin: 0; background: rgba(255, 252, 251, .96); border-radius: 24px;
  padding: 41px 26px 26px; border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 22px 44px rgba(190, 120, 140, .22); text-align: center;
  box-sizing: border-box; height: 520px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.fp-card .au-mark { display: none; }
.fp-card .au-msg { margin: -4px 0 12px; min-height: 38px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.msg-hint {
  margin: -8px 0 18px; font-size: 12px; line-height: 1.85;
  color: var(--ink-soft); text-align: center;
}

.pw-eye .eye-off { display: none; }
.pw-eye[data-open="1"] .eye-on { display: none; }
.pw-eye[data-open="1"] .eye-off { display: inline; }

.login-stack { width:100%; max-width:min(410px, 100%); display:flex; flex-direction:column; gap:12px; }
.rescue-box {
  width:100%; padding:15px 17px; border-radius:20px;
  background: rgba(255,250,251,.95); border:1px solid #f7d5e0;
  box-shadow: 0 12px 28px rgba(200,120,145,.14);
}
.rescue-head { font-size:13px; font-weight:700; color:#c9416b; margin-bottom:7px; letter-spacing:.2px; }
.rescue-tip { margin:0 0 10px; font-size:12px; line-height:1.75; color:#8d6a75; }
.rescue-tip b { color:#c9416b; }
.rescue-row { display:flex; gap:8px; margin-bottom:8px; }
.rescue-row input {
  flex:1; min-width:0; height:40px; padding:0 12px;
  border:1px solid #f0c9d6; border-radius:10px; background:#fff;
  font:14px/1 inherit; color:#6d4a56; letter-spacing:2px;
}
.rescue-row input:focus { outline:none; border-color:#e79bb0; box-shadow:0 0 0 3px #ffe4ec; }
.rescue-btn {
  height:40px; padding:0 16px; border:0; border-radius:10px;
  background:#e5517a; color:#fff; font:13px/1 inherit; cursor:pointer; white-space:nowrap;
  transition: background .5s ease;
}
.rescue-btn:hover { background:#d4416a; }
.rescue-box > .rescue-btn { width:100%; }
.rescue-link {
  padding:0; border:0; background:none; color:#a97b8b;
  font:12px/1.6 inherit; text-decoration:underline; cursor:pointer;
}
@media (max-width:420px) {
  .rescue-row { flex-direction:column; }
  .rescue-row .rescue-btn { width:100%; }
}
.fp-card .au-msg {
  margin-top: 10px; padding: 6px 12px; font-size: 11.5px; line-height: 1.45;
  height: 46px; min-height: 46px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.fp-card.is-shake { animation: auShake .5s cubic-bezier(.36, .07, .19, .97) both; }
.fp-card .au-btn { position: absolute; left: 30px; right: 30px; width: auto; bottom: 91px; margin: 0; letter-spacing: 1px; }
.fp-card .au-msg { position: absolute; left: 30px; right: 30px; width: auto; bottom: 37px; margin: 0; }
.fp-card .au-modal-foot {
  position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; font-size: 12px; color: var(--ink-soft);
  display: flex; justify-content: center; align-items: center; gap: 7px;
}
.fp-card .au-modal-foot a { color: #d26781; border-bottom: 1px dashed #f0bcc8; padding-bottom: 1px; }
.fp-card .au-modal-foot span { color: #d9b6bf; }
@media (max-width: 780px), (pointer: coarse) {
  .au-field input { font-size: 16px; }
}
.au-sheet .au-btn {
  position: absolute; left: 30px; right: 30px; width: auto;
  bottom: 91px; margin: 0; letter-spacing: 1px;
}
.au-sheet .au-msg {
  position: absolute; left: 30px; right: 30px; width: auto;
  bottom: 37px; margin: 0;
  padding: 6px 12px; font-size: 11.5px; line-height: 1.45;
  height: 46px; min-height: 46px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.au-sheet .au-msg.is-off { visibility: hidden; }
.au-sheet.is-shake { animation: auShake .5s cubic-bezier(.36, .07, .19, .97) both; }
.fp-card h3 { margin: 0 0 9px; font-size: 20px; font-weight: 700; color: #e5517a; letter-spacing: 7px; text-indent: 7px; text-align: center; line-height: 28px; }
.fp-card .au-modal-sub { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }

@media (max-width: 560px) {
  .login-stack { max-width: 100%; }
  .au-card { max-width: 100%; }
}

.msg-sw-card {
  position: fixed; right: 22px; top: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 16px; border-radius: 18px;
  background: rgba(255,252,251,.94);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 24px rgba(216,140,163,.18);
}
.msg-sw-t { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #8d5f6c; }
.msg-sw-v { font-size: 11px; font-weight: 700; color: #ac8b95; min-width: 12px; text-align: center; }
.msg-sw-v.is-on { color: #e5517a; }
.msg-sw-btn {
  position: relative; width: 46px; height: 26px; padding: 0;
  border: 0; border-radius: 999px; background: #f0dcdf; cursor: pointer;
  transition: background .25s ease;
}
.msg-sw-btn.is-on { background: linear-gradient(135deg,#ff9db8,#ff6f95); }
.msg-sw-btn i {
  position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(210,120,145,.28);
  transition: transform .25s ease;
}
.msg-sw-btn.is-on i { transform: translateX(20px); }
.msg-sw-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.msg-off-text { margin: 0 0 18px; font-size: 12.5px; line-height: 1.95; color: var(--ink-soft); text-align: center; }

@media (max-width: 560px) {
  .msg-sw-card { right: 12px; top: 12px; padding: 8px 12px; gap: 8px; }
}

.au-tap-tmp { cursor: default; -webkit-user-select: none; user-select: none; }
