/* ChatHub — หน้าเข้าสู่ระบบ / ตั้งรหัสผ่านใหม่ / เข้าผ่าน LINE (โครงเดียวกับหน้า Login ของ NitiHub: การ์ดกลางจอ ติดบน) */
:root { --main-color: #0f766e; --brand: #0d9488; --brand-d: #0f766e; --bg-body: #f4f6f9; --bg-card: #ffffff; --border-color: rgba(0, 0, 0, .1); }
body.auth-body { background-color: var(--bg-body); font-family: 'Noto Sans Thai', sans-serif; display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; margin: 0; padding-top: 10vh; }
.login-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px 25px; width: 90%; max-width: 400px; box-shadow: 0 10px 25px rgba(0, 0, 0, .15); text-align: center; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.login-brand img { width: 76px; height: 76px; border-radius: 18px; }
.login-brand .name { font-size: 1.55rem; font-weight: 700; color: var(--ink, #0f172a); line-height: 1.1; }
.login-brand .tag { font-size: .9rem; color: #64748b; }
.btn-submit { background-color: var(--brand); color: #fff; border: none; padding: 12px; font-size: 1.1rem; border-radius: 8px; width: 100%; font-weight: bold; transition: .3s; }
.btn-submit:hover { background-color: var(--brand-d); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .7; transform: none; }
.lang-warning::before { content: ''; position: absolute; top: -5px; left: 15px; border-width: 0 5px 5px 5px; border-style: solid; border-color: transparent transparent #dc3545 transparent; }
#global-loading { position: fixed; inset: 0; background: rgba(255, 255, 255, .9); z-index: 9999; display: none; align-items: center; justify-content: center; flex-direction: column; }
.input-group-text { background-color: transparent; cursor: pointer; border-left: 0; }
.pass-input { border-right: 0; }
.pass-input:focus { box-shadow: none; border-color: #dee2e6; }
.pass-input:focus + .input-group-text { border-color: #86b7fe; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.auth-link { color: var(--brand-d); font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.acct-btn:hover .text-muted, .acct-btn:focus-visible .text-muted { color: rgba(255, 255, 255, .78) !important; }
.msg-box { border-radius: 10px; padding: 12px 14px; font-size: .9rem; text-align: left; }
.msg-warn { background: #fef3c7; color: #78350f; }
.msg-err { background: #fee2e2; color: #7f1d1d; }
.msg-ok { background: #dcfce7; color: #14532d; }
