/* ログイン・初期設定・招待の画面 */

.auth-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn { height: 38px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 12px; color: var(--ink-faint); }

/* ------------------------------------------------------------- 利用者の管理 */

.users-main { max-width: 900px; margin: 0 auto; padding: 22px 16px 60px; }

.user-table { width: 100%; border-collapse: collapse; }

.user-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.user-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.user-table tr.is-disabled { opacity: .45; }

.user-name { font-weight: 700; }
.user-login { font-size: 12px; color: var(--ink-faint); font-family: ui-monospace, Menlo, monospace; }

.role-owner { background: rgba(255, 90, 44, .16); color: var(--ember); }
.role-member { background: rgba(57, 197, 207, .14); color: var(--tag-color); }
.role-guest { background: var(--surface-3); color: var(--ink-soft); }

.invite-box {
  background: var(--bg);
  border: 1px dashed var(--ember-deep);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 640px) {
  .user-table thead { display: none; }
  .user-table tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .user-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 10px; }
  .user-table td::before { content: attr(data-label); color: var(--ink-faint); font-size: 12px; }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--ink-faint);
  font-size: 11px;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-btn {
  width: 100%;
  height: 38px;
  background: #fff;
  color: #1f1f1f;
  border-color: #dadce0;
  font-weight: 700;
}

.google-btn:hover { background: #f5f5f5; border-color: #c6c9cd; }
