/* ==========================================================================
   Login page + boot screen (shared, non-module styles)
   ========================================================================== */
.boot-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 5000; }
.boot-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px; }
.boot-card h3 { font-size: 18px; margin-top: 8px; }
.boot-bar { width: 200px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.boot-bar span { display: block; height: 100%; width: 40%; background: var(--primary); border-radius: 4px; animation: boot-slide 1.1s ease-in-out infinite; }
@keyframes boot-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.login-body { background: var(--bg); min-height: 100vh; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background:
    radial-gradient(circle at 85% 12%, rgba(240, 164, 58, .28), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(229, 118, 42, .22), transparent 45%),
    #13284A;
}
.login-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.lh-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.lh-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.lh-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.lh-body { position: relative; z-index: 1; max-width: 560px; }
.lh-body h1 { color: #fff; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.lh-body h1 span { color: #F6B36A; }
.lh-body p { margin-top: 16px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 480px; }
.lh-stats { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.lh-stats div { padding: 12px 18px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); min-width: 120px; }
.lh-stats b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.lh-stats span { font-size: 12px; color: rgba(255,255,255,.65); }
.lh-outlets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
.lh-outlet { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.lh-outlet i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.lh-outlet b { display: block; font-size: 13px; }
.lh-outlet span { font-size: 11.5px; color: rgba(255,255,255,.6); }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.login-card { width: 100%; max-width: 520px; }
.login-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.login-card > .muted { margin-top: 4px; }
.lc-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--font-display); font-size: 16px; }
.demo-accounts { margin-top: 24px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; max-height: 320px; overflow-y: auto; padding-right: 2px; }
.demo-acc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); text-align: left; transition: all var(--transition); min-width: 0; }
.demo-acc:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-1px); }
.demo-acc .da-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-acc .da-icon svg { width: 16px; height: 16px; }
.demo-acc .da-text { min-width: 0; display: flex; flex-direction: column; }
.demo-acc b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-acc .da-text > span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-acc code { font-family: var(--font-mono); font-size: 11px; color: var(--primary-700); }
:root[data-theme="dark"] .demo-acc code { color: var(--primary-600); }

@media (max-width: 1024px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-hero { display: none; }
  .lc-mobile-brand { display: flex; }
}
@media (max-width: 520px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); max-height: none; }
  .login-panel { padding: 24px 16px; align-items: flex-start; }
}

/* Access-restricted helper used across modules */
.locked-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.locked-note svg { width: 13px; height: 13px; }
