/* =====================================================================
   assets/css/login-modal.css — লগইন পপআপ (কমপ্যাক্ট প্রিমিয়াম, Oct 4 2026)
   রঙ আসে অ্যাডমিন Design থেকে: --yellow = Accent (আপনার ব্র্যান্ড অরেঞ্জ), --ink, --border।
   অ্যাকসেন্ট-রঙের হেডার, My Account প্রিমিয়াম ধাঁচের নরম ছায়া/বর্ডার। JS হুক (data-lm-*) অপরিবর্তিত।
   ===================================================================== */
html.lm-open, html.lm-open body { overflow: hidden; }

.lm-overlay {
  position: fixed; inset: 0; z-index: 9000; display: flex; padding: 16px; overflow-y: auto;
  background: rgba(16, 12, 9, 0.50);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lm-overlay { background: rgba(16, 12, 9, 0.78); } }
.lm-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }

.lm-card {
  position: relative; width: 100%; max-width: 372px; margin: auto; overflow: hidden;
  background: var(--white, #fff); color: var(--ink, #14241B);
  border-radius: 20px; padding: 0 24px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 28px 60px -18px rgba(0,0,0,.55);
  transform: translateY(14px) scale(.97); transition: transform .28s cubic-bezier(.2,.9,.3,1.1);
}
.lm-overlay.is-open .lm-card { transform: none; }

/* ---------- হেডার: অ্যাকসেন্ট (ব্র্যান্ড অরেঞ্জ) গ্রেডিয়েন্ট, ভেতরে লোগো ---------- */
.lm-head {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 78px; margin: 0 -24px 16px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255,255,255,.30), rgba(255,255,255,0) 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%),
    var(--yellow, #D97B29);
}
.lm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.35); }
.lm-logo { max-height: 40px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.lm-badge { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: var(--yellow, #D97B29); background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.25); }

.lm-close {
  position: absolute; top: 11px; right: 11px; z-index: 2; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; cursor: pointer;
  color: var(--ink, #14241B); background: #fff;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.28);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.2), color .15s ease, box-shadow .2s ease;
}
.lm-close .ti { transition: transform .25s cubic-bezier(.2,.9,.3,1.2); }
.lm-close:hover { color: var(--yellow, #D97B29); transform: scale(1.08); box-shadow: 0 6px 16px -3px rgba(0,0,0,.4), 0 0 0 4px rgba(255,255,255,.38); }
.lm-close:hover .ti { transform: rotate(90deg); }
.lm-close:active { transform: scale(.94); }
.lm-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lm-intro { text-align: center; margin-bottom: 14px; }
.lm-title { font-family: var(--font-display, inherit); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink, #14241B); margin: 0 0 3px; }
.lm-sub { font-size: 13px; color: var(--ink-soft, #647A6F); margin: 0; }

.lm-alert { padding: 9px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; background: #FDEDED; color: var(--danger, #D14343); border: 1px solid rgba(209,67,67,.2); }
.lm-alert[hidden] { display: none; }
.lm-card.lm-shake { animation: lm-shake .38s ease; }
@keyframes lm-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- ট্যাব ---------- */
.lm-tabs { display: flex; gap: 3px; padding: 3px; margin-bottom: 12px; border-radius: 11px; background: #F3F1EE; }
.lm-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; padding: 7px 8px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft, #647A6F); cursor: pointer; transition: all .15s ease; }
.lm-tab .ti { font-size: 15px; }
.lm-tab.is-active { background: #fff; color: var(--ink, #14241B); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.lm-tab.is-active .ti { color: var(--yellow, #D97B29); }

/* ---------- ফিল্ড ---------- */
.lm-field { margin-bottom: 11px; }
.lm-field[hidden] { display: none; }
.lm-field > label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.lm-input { position: relative; flex: 1; min-width: 0; }
.lm-input > i.ti { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--ink-soft, #647A6F); pointer-events: none; transition: color .15s ease; }
.lm-input input, .lm-phone-row select {
  width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px 0 38px;
  border: 1.5px solid var(--border, #E4E0DA); border-radius: 11px; font: inherit; font-size: 14px; color: inherit;
  background: var(--account-field-bg, #F7F6F4); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lm-input input::placeholder { color: #A39E97; }
.lm-input input[name=password] { padding-right: 42px; }
.lm-input input:focus, .lm-phone-row select:focus { outline: none; background: #fff; border-color: var(--yellow, #D97B29); box-shadow: 0 0 0 3px rgba(217,123,41,.18); }
.lm-input:focus-within > i.ti { color: var(--yellow, #D97B29); }
.lm-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft, #647A6F); font-size: 17px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lm-eye:hover { color: var(--ink, #14241B); background: #EFEDEA; }
.lm-phone-row { display: flex; gap: 6px; }
.lm-phone-row select { flex: 0 0 100px; width: 100px; padding: 0 6px; font-size: 12.5px; }

.lm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 14px; }
.lm-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; color: var(--ink-soft, #647A6F); cursor: pointer; margin: 0; }
.lm-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--yellow, #D97B29); }
.lm-link { font-size: 12.5px; font-weight: 600; color: var(--ink, #14241B); text-decoration: none; border-bottom: 1.5px solid var(--yellow, #D97B29); }
.lm-link:hover { color: var(--yellow, #D97B29); }

/* ---------- সাবমিট: সাইটের কার্ট-বাটনের মতো অ্যাকসেন্ট + গাঢ় লেখা ---------- */
.lm-submit {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 16px;
  font-size: 15px; font-weight: 700; border-radius: 12px; color: #1B0F06;
  background: var(--yellow, #D97B29); box-shadow: 0 8px 18px -8px var(--yellow, #D97B29);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.lm-submit:hover { filter: brightness(1.06); transform: translateY(-1px); background: var(--yellow, #D97B29); }
.lm-arrow { font-size: 17px; transition: transform .15s ease; }
.lm-submit:hover .lm-arrow { transform: translateX(3px); }
.lm-spinner { display: none; width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid rgba(27,15,6,.3); border-top-color: #1B0F06; animation: lm-spin .7s linear infinite; }
.lm-submit.is-busy { pointer-events: none; opacity: .92; }
.lm-submit.is-busy .lm-spinner { display: inline-block; }
.lm-submit.is-busy .lm-arrow { display: none; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

.lm-card .auth-divider { margin: 14px 0 10px; font-size: 12px; }
.lm-card .social-auth-buttons { gap: 8px; }
.lm-card .btn-social { padding: 9px 12px; border-radius: 11px; font-size: 13.5px; }
.lm-switch { text-align: center; font-size: 13px; color: var(--ink-soft, #647A6F); margin: 14px 0 0; }
.lm-switch .lm-link { font-size: 13px; }

@media (max-width: 520px) {
  .lm-overlay { padding: 12px; }
  .lm-card { padding: 0 18px 18px; border-radius: 18px; }
  .lm-head { margin: 0 -18px 14px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-overlay, .lm-card, .lm-submit, .lm-arrow, .lm-close, .lm-close .ti { transition: none; }
  .lm-card.lm-shake, .lm-spinner { animation: none; }
}
