/* 
    filename        : /mnt/www/live/bsodcloud.com/assets/css/auth.css
    Last Updated    : 2026-03-08 21:25
    Version         : 1.04
*/
/* Mobile-first, clean auth styles */
:root {
  --maxw: 560px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #222;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

label {
  display: block;
  font-size: 14px;
  margin: 10px 0 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

button,
.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button.primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.sep {
  margin: 12px 0;
  color: #888;
  text-align: center;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.error {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
}

.ok {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #d1fae5;
  color: #065f46;
}

small.muted {
  color: #6b7280;
}

a.inline {
  display: inline;
  color: #2563eb;
  text-decoration: none;
}

footer.app {
  margin: 24px 0;
  color: #999;
  font-size: 12px;
  text-align: center;
}

/* ---- App Shell / Sidebar Menu (mobile-first) ---- */
.app-shell {
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.app-brand {
  font-weight: 700;
  font-size: 16px;
}

.app-topbar-spacer {
  flex: 1 1 auto;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.app-user-label {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.app-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}
.menu-toggle,
.menu-close {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  border-right: 1px solid #ddd;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 160ms ease;
  padding: 10px;
  overflow-y: auto;
}

.app-sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px 10px 4px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.sidebar-title {
  font-weight: 700;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.app-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin: 6px 0;
}

.menu-item {
  display: block;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #eee;
}

.menu-item:hover {
  border-color: #ddd;
}

.menu-item.external .ext-mark {
  font-size: 12px;
}

/* Content area */
.app-content {
  padding: 14px;
}

/* Desktop: sidebar always visible, no backdrop, content pushed right */
@media (min-width: 900px) {
  .app-topbar .menu-toggle {
    display: none;
  }

  .app-sidebar {
    transform: translateX(0);
  }

  .app-backdrop {
    display: none;
  }

  .app-content {
    margin-left: 280px;
    padding: 18px;
  }

  .menu-close {
    display: none;
  }
}
/* ---- Theme-aware app shell ---- */

body.theme-light {
  background: #fafafa;
  color: #222;
}

body.theme-light .app-topbar {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

body.theme-light .app-sidebar {
  background: #ffffff;
  border-right: 1px solid #ddd;
}

body.theme-light .app-user-label {
  color: #6b7280;
}

body.theme-light .app-topbar-link,
body.theme-light .menu-toggle,
body.theme-light .menu-close {
  background: #ffffff;
  color: #111827;
  border-color: #ddd;
}

body.theme-light .menu-section-title {
  color: #666;
}

body.theme-light .menu-item {
  color: #111827;
  border-color: #eee;
  background: transparent;
}

/* Dark theme */
body.theme-dark {
  background: #0b0f19;
  color: #e5e7eb;
}

body.theme-dark .app-topbar {
  background: #111827;
  border-bottom: 1px solid #1f2937;
}

body.theme-dark .app-brand {
  color: #f9fafb;
}

body.theme-dark .app-sidebar {
  background: #0f172a;
  border-right: 1px solid #1f2937;
}

body.theme-dark .sidebar-header {
  border-bottom: 1px solid #1f2937;
}

body.theme-dark .sidebar-title {
  color: #f9fafb;
}

body.theme-dark .app-user-label {
  color: #cbd5e1;
}

body.theme-dark .app-topbar-link,
body.theme-dark .menu-toggle,
body.theme-dark .menu-close {
  background: #111827;
  color: #f9fafb;
  border-color: #374151;
}

body.theme-dark .menu-section-title {
  color: #94a3b8;
}

body.theme-dark .menu-item {
  color: #e5e7eb;
  border-color: #1f2937;
  background: transparent;
}

body.theme-dark .menu-item:hover {
  background: #111827;
  border-color: #334155;
}

body.theme-dark .menu-item:visited,
body.theme-light .menu-item:visited {
  color: inherit;
}

body.theme-dark .app-content {
  background: transparent;
}

/* ---- Theme-aware content components ---------------------------------- */

body.theme-light .card {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

body.theme-light .card h1,
body.theme-light .card h2,
body.theme-light .card h3 {
  color: #111827;
}

body.theme-light .muted,
body.theme-light p.muted,
body.theme-light small.muted {
  color: #6b7280;
}

body.theme-light .btn {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

body.theme-light .btn:hover {
  background: #f9fafb;
}

body.theme-light footer.app {
  color: #6b7280;
}

body.theme-light .badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  font-size: 12px;
  font-weight: 700;
}

body.theme-light .badges {
  margin: 0 0 12px;
}

/* Dark theme content */
body.theme-dark .container {
  color: #e5e7eb;
}

body.theme-dark .card {
  background: #111827;
  border-color: #1f2937;
  color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
}

body.theme-dark .card h1,
body.theme-dark .card h2,
body.theme-dark .card h3 {
  color: #f9fafb;
}

body.theme-dark .muted,
body.theme-dark p.muted,
body.theme-dark small.muted {
  color: #94a3b8;
}

body.theme-dark .btn {
  background: #0f172a;
  color: #f9fafb;
  border-color: #334155;
}

body.theme-dark .btn:hover {
  background: #111827;
  border-color: #475569;
}

body.theme-dark button.primary,
body.theme-dark .btn.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

body.theme-dark footer.app {
  color: #94a3b8;
}

body.theme-dark .badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #dbeafe;
  border: 1px solid #3b82f6;
  font-size: 12px;
  font-weight: 700;
}

body.theme-dark .badges {
  margin: 0 0 12px;
}