/* 
    filename        : /mnt/www/live/bsodcloud.com/assets/auth.css
    Last Updated    : 2026-02-24 13:00
    Version         : 1.01
*/
/* 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;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0b0b0b;
    color: #e5e7eb;
  }

  .card {
    background: #111;
    border-color: #222;
  }

  input,
  button,
  .btn {
    border-color: #333;
    background: #0f0f0f;
    color: #e5e7eb;
  }

  button.primary {
    background: #2563eb;
    border-color: #2563eb;
  }
}

/* ---- 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;
}

.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;
  }
}
