/* Dasar UI admin — reset, brand, tombol umum, gate auth */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  z-index: 100;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-mark {
  font-size: 1.25rem;
  color: var(--accent);
}

.brand-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.link-btn {
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Gate: sembunyikan panel sampai sesi dikonfirmasi */
html.auth-pending .admin-app,
html.auth-pending .dash-app {
  display: none !important;
}
html.auth-verified .auth-gate {
  display: none !important;
}
.auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
}
.auth-gate-text {
  margin: 0;
  font-size: 0.95rem;
}
