* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans Lao", "Segoe UI", sans-serif;
  background: #0f172a;
  color: #f1f5f9;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #1e293b;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.btn-logout {
  background: transparent;
  border: 1px solid #f87171;
  color: #f87171;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-logout:hover {
  background: rgba(248, 113, 113, 0.12);
}

main {
  padding: 1.5rem;
}

.auth-card {
  max-width: 380px;
  margin: 2rem auto;
  background: #1e293b;
  border-radius: 16px;
  padding: 1.5rem;
  transition: opacity 0.2s ease;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  flex: 1;
  padding: 0.6rem;
  background: #0f172a;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn.active {
  background: #10b981;
  color: #06281f;
  font-weight: 700;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.tab-panel.active {
  display: flex;
}

.tab-panel label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.tab-panel input {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 0.95rem;
}

.btn-primary {
  margin-top: 1rem;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  background: #10b981;
  color: #06281f;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
