/* หน้าสมาชิก: เข้าสู่ระบบ / สมัคร / ลืมรหัสผ่าน / ตั้งรหัสผ่านใหม่ / บัญชีของฉัน — ใช้โทนสีเดียวกับธีม */
.st-auth-page .entry { max-width: 520px; }
.st-auth-page--account .entry { max-width: 780px; }
.st-auth-page .entry > h1 { text-align: center; margin-bottom: 18px; }

.st-auth, .st-account { --a: var(--accent, #f00675); --a2: var(--accent-2, #d90968); --b: var(--border, #f5dce8); --t: var(--text, #241c26); --m: var(--muted, #776775); color: var(--t); }
.st-auth a, .st-account a:not(.st-btn) { color: #c70863; text-decoration: underline; text-underline-offset: 2px; }
.st-auth { background: #fff; border: 1px solid var(--b); border-radius: 24px; box-shadow: 0 12px 45px #b32e6414; padding: 28px; }
.st-lead { color: var(--m); margin: 0 0 18px; }

/* ช่องกรอก */
.st-field { margin: 0 0 16px; }
.st-field > label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.st-field > label small { font-weight: 400; color: var(--m); }
.st-field__control { position: relative; }
.st-auth input[type=text], .st-auth input[type=email], .st-auth input[type=password], .st-auth select, .st-auth textarea,
.st-account input[type=text], .st-account input[type=email], .st-account input[type=password], .st-account select, .st-account textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; background: #fffafd; color: var(--t); border: 1px solid #e8d8e1; border-radius: 12px; font: inherit; font-size: 16px; line-height: 1.5;
}
.st-auth textarea, .st-account textarea { resize: vertical; }
.st-field__control input[type=password], .st-field__control input.is-shown { padding-right: 76px; }
.st-auth input:focus-visible, .st-auth select:focus-visible, .st-auth textarea:focus-visible,
.st-account input:focus-visible, .st-account select:focus-visible, .st-account textarea:focus-visible { outline: 3px solid #f0067540; outline-offset: 0; border-color: var(--a); }
.st-auth input:user-invalid, .st-account input:user-invalid { border-color: #d6366a; }
.st-field__hint { margin: 6px 0 0; font-size: 13px; color: var(--m); line-height: 1.5; }
.st-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 34px; padding: 0 12px; border: 0; border-radius: 20px; background: #ffe7f2; color: #b00058; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.st-eye:hover { background: #ffd3e8; }

/* ความแข็งแรงของรหัสผ่าน */
.st-meter { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.st-meter span { flex: 1; height: 5px; border-radius: 3px; background: #efe3ea; }
.st-meter em { flex: none; min-width: 64px; margin-left: 8px; font-size: 12px; font-style: normal; color: var(--m); }
.st-meter[data-level="1"] span:nth-child(-n+1) { background: #e0476f; }
.st-meter[data-level="2"] span:nth-child(-n+2) { background: #f0a020; }
.st-meter[data-level="3"] span:nth-child(-n+3) { background: #7cb342; }
.st-meter[data-level="4"] span:nth-child(-n+4) { background: #1a9d5b; }

/* ติ๊กถูก */
.st-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.st-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--a); }
.st-check--box { padding: 12px 14px; border: 1px solid var(--b); border-radius: 12px; background: #fffafd; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.st-row .st-check { margin: 0; font-size: 14px; }
.st-optional { margin: 0 0 16px; border: 1px solid var(--b); border-radius: 12px; padding: 0 14px; background: #fffafd; }
.st-optional summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 14px; }
.st-optional[open] summary { border-bottom: 1px solid var(--b); margin-bottom: 14px; }
.st-optional > :last-child { margin-bottom: 14px; }

/* ปุ่ม */
.st-actions { margin: 6px 0 0; }
.st-btn--block { display: flex; width: 100%; }
.st-btn--danger { background: linear-gradient(160deg, #e5484d, #b3261e); }
.st-btn--danger:hover { background: #a01d17; }
.st-authform + .st-authform { margin-top: 10px; }
.st-switch { margin: 20px 0 0; text-align: center; font-size: 15px; color: var(--m); }
.st-turnstile { margin: 0 0 14px; min-height: 65px; }
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ข้อความแจ้ง */
.st-auth .st-notice, .st-account .st-notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 15px; line-height: 1.55; }
.st-auth .st-notice ul, .st-account .st-notice ul { margin: 0; padding-left: 20px; }
.st-auth .st-notice--err, .st-account .st-notice--err { background: #fff0f3; border-color: #f3a6bb; color: #a21e40; }
.st-auth .st-notice--ok, .st-account .st-notice--ok { background: #ecfdf3; border-color: #86d9ae; color: #136541; }

/* บัญชีของฉัน */
.st-account__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 16px 20px; background: #fff; border: 1px solid var(--b); border-radius: 18px; }
.st-account__top div { display: grid; min-width: 0; }
.st-account__top strong { font-size: 18px; overflow-wrap: anywhere; }
.st-account__top span { color: var(--m); font-size: 14px; overflow-wrap: anywhere; }
.st-account__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.st-account__nav a { padding: 7px 16px; border-radius: 30px; background: #fff0f7; border: 1px solid var(--b); font-size: 14px; text-decoration: none !important; color: #b00058 !important; }
.st-account__nav a:hover { background: #ffe0ef; }
.st-card { margin: 0 0 20px; padding: 24px; background: #fff; border: 1px solid var(--b); border-radius: 22px; box-shadow: 0 8px 30px #b32e640d; scroll-margin-top: 90px; }
.st-card h2 { margin: 0 0 16px; font-size: 20px; }
.st-card--danger { border-color: #f3b4b0; }
.st-card--danger h2 { color: #a01d17; }
.st-mylist { list-style: none; margin: 0; padding: 0; }
.st-mylist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f7e8f0; }
.st-mylist li:last-child { border-bottom: 0; }
.st-mylist a { overflow-wrap: anywhere; }
.st-badge { flex: none; padding: 2px 12px; border-radius: 20px; font-size: 12px; background: #f1ecef; color: #5d4d58; }
.st-badge--publish { background: #e4f7ec; color: #136541; }
.st-badge--pending { background: #fff1d6; color: #8a5300; }

@media (max-width: 600px) {
	.st-auth { padding: 22px 18px; border-radius: 20px; }
	.st-card { padding: 20px 16px; }
	.st-account__top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
	.st-auth input, .st-auth select, .st-account input, .st-account select, .st-account textarea { transition: border-color .15s, outline-color .15s; }
}
.st-auth .st-btn, .st-account .st-btn { text-decoration: none; }
