/* ═══════════════════════════════════════════════
   css/auth.css — Login page styles
═══════════════════════════════════════════════ */

.auth-body { background: var(--dark); min-height: 100vh; overflow: hidden; }

.auth-wrap {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
}

/* ── Brand panel ── */
.auth-brand {
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.auth-brand-inner { position: relative; z-index: 2; }
.auth-logo {
  width: 64px; height: 64px;
  background: var(--gold);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 26px;
  color: #0B0B0B;
  margin-bottom: 40px;
}
.auth-tagline {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 600;
  color: var(--text); line-height: 1.0;
  margin-bottom: 16px;
}
.auth-sub { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.auth-brand-footer { font-size: 12px; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; }

.auth-brand-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 80% 20%, rgba(201,168,76,.06) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(201,168,76,.04) 0%, transparent 50%);
}

/* ── Form panel ── */
.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--dark);
}
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-header { margin-bottom: 32px; }
.auth-form-title {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.auth-form-sub { font-size: 14px; color: var(--text-muted); }

.auth-field { margin-bottom: 18px; }
.auth-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.auth-input {
  width: 100%; background: var(--dark3); border: 1px solid var(--border2);
  color: var(--text); border-radius: 9px; padding: 12px 14px; font-size: 14px;
  outline: none; transition: border-color .18s; font-family: var(--font-body);
}
.auth-input:focus { border-color: var(--gold); }

.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 44px; }
.auth-toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px;
}

.auth-btn {
  width: 100%; padding: 13px 0; border-radius: 9px; border: none;
  background: var(--gold); color: #0B0B0B;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .16s; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); margin-top: 8px;
}
.auth-btn:hover:not(:disabled) { background: var(--gold-light); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
  color: #f87171; border-radius: 8px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 18px;
}

.auth-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: #0B0B0B;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Demo credentials box */
.auth-demo-creds {
  margin-top: 32px; padding: 14px 16px;
  background: var(--dark3); border: 1px solid var(--border2); border-radius: 10px;
}
.auth-demo-title { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.auth-demo-row { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.auth-demo-row:last-child { margin-bottom: 0; }
.auth-demo-role  { font-size: 11px; font-weight: 600; color: var(--gold); min-width: 100px; }
.auth-demo-email { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono, monospace); }
.auth-demo-pw    { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono, monospace); }

/* ── Responsive ── */
@media (max-width: 800px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

/* ── Sync bar (used in dashboard) ── */
.sync-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--gold-pale); border-bottom: 1px solid var(--gold-border);
  padding: 6px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gold);
}

/* ── Sidebar user block ── */
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 4px;
}
.sidebar-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-pale); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--gold); flex-shrink: 0;
}
.sidebar-user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.sidebar-user-role { font-size: 10px; color: var(--text-dim); text-transform: capitalize; }

.logout-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--dur-fast); font-family: var(--font-body); margin-top: 4px;
}
.logout-btn:hover { color: #f87171; border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.06); }

/* ── Toast notifications ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500;
  font-family: var(--font-body); opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s; pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.toast-error   { background: #2d0f0f; color: #f87171; border: 1px solid #7f1d1d; }
.toast-info    { background: var(--dark3); color: var(--gold); border: 1px solid var(--gold-border); }

/* ── Page loading ── */
.page-loading { display:flex;align-items:center;justify-content:center;padding:80px 20px;color:var(--text-dim);font-size:14px; }
