/* ============================================================
   OTO - ĐĂNG NHẬP / ĐĂNG KÝ
   ============================================================ */
.hm-auth { padding: 40px 0 60px; background: var(--hm-bg); }
.hm-auth-card { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(16,24,40,.12); }

/* ---------- PANEL TRÁI ---------- */
.hm-auth-side { position: relative; padding: 30px 32px 34px; display: flex; flex-direction: column; min-height: 560px; color: #fff; background: #16181c center/cover no-repeat; }
.hm-auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(10,11,13,.96) 100%); }
.hm-auth-side > * { position: relative; z-index: 2; }
.hm-auth-logo img { height: 46px; width: auto; display: block; }
.hm-auth-slogan { margin-top: auto; }
.hm-auth-slogan h2 { font-size: 26px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.hm-auth-slogan p { font-size: 14px; color: rgba(255,255,255,.82); margin: 0; }

.hm-auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.hm-auth-stat { text-align: center; }
.hm-auth-stat i { font-size: 20px; color: rgba(255,255,255,.9); display: block; margin-bottom: 10px; }
.hm-auth-stat strong { display: block; font-size: 19px; font-weight: 800; color: #fff; line-height: 1.2; }
.hm-auth-stat span { display: block; font-size: 11px; color: rgba(255,255,255,.7); margin-top: 3px; }

/* ---------- PANEL PHẢI (FORM) ---------- */
.hm-auth-main { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.hm-auth-title { font-size: 26px; font-weight: 800; color: var(--hm-text); margin: 0 0 6px; }
.hm-auth-desc { font-size: 14px; color: var(--hm-muted); margin: 0 0 24px; }

.hm-auth-form { display: none; }
.hm-auth-form.active { display: block; }

.hm-auth-field { margin-bottom: 16px; }
.hm-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-auth-label { display: block; font-size: 13px; font-weight: 700; color: var(--hm-text); margin-bottom: 7px; }
.hm-auth-input { width: 100%; height: 46px; border: 1px solid var(--hm-border); border-radius: 8px; padding: 0 14px; font-size: 14px; color: #374151; background: #fff; }
.hm-auth-input:focus { outline: none; border-color: var(--hm-red); box-shadow: 0 0 0 3px rgba(225,27,34,.08); }
.hm-auth-input::placeholder { color: #a3abb5; }

.hm-auth-pass { position: relative; }
.hm-auth-pass .hm-auth-input { padding-right: 42px; }
.hm-auth-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #9aa5b1; cursor: pointer; font-size: 14px; padding: 4px; }
.hm-auth-eye:hover { color: var(--hm-red); }

.hm-auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hm-auth-remember { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--hm-muted); cursor: pointer; }
.hm-auth-remember input { accent-color: var(--hm-red); }
.hm-auth-link { font-size: 13px; color: var(--hm-red); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.hm-auth-link:hover { text-decoration: underline; }

.hm-auth-submit { width: 100%; height: 50px; border: none; border-radius: 8px; background: var(--hm-red); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.hm-auth-submit:hover { background: var(--hm-red-dark); }

/* Chia cắt + đăng nhập mạng xã hội */
.hm-auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; font-size: 13px; color: var(--hm-muted); }
.hm-auth-divider::before, .hm-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--hm-border); }
.hm-auth-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-auth-social { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; border: 1px solid var(--hm-border); border-radius: 8px; background: #fff; font-size: 14px; color: var(--hm-text); text-decoration: none; transition: all .2s; }
.hm-auth-social:hover { border-color: var(--hm-red); color: var(--hm-text); box-shadow: 0 4px 12px rgba(16,24,40,.06); }
.hm-auth-social .fa-google { color: #ea4335; }
.hm-auth-social .fa-facebook { color: #1877f2; }

.hm-auth-foot { text-align: center; font-size: 14px; color: var(--hm-muted); margin-top: 24px; }
.hm-auth-foot button { font-weight: 700; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
	.hm-auth { padding: 20px 0 40px; }
	.hm-auth-card { grid-template-columns: 1fr; }
	.hm-auth-side { min-height: 220px; padding: 22px; }
	.hm-auth-slogan h2 { font-size: 20px; }
	.hm-auth-stats { margin-top: 18px; padding-top: 16px; }
	.hm-auth-stat strong { font-size: 16px; }
	.hm-auth-main { padding: 28px 22px; }
	.hm-auth-title { font-size: 22px; }
}
