:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --ink: #151515;
  --muted: #686868;
  --line: #e7e7e7;
  --panel: #ffffff;
  --soft: #f4f4f4;
  --field: #f1f1f1;
  --accent: #303030;
  --page: #777776;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8)),
    var(--page);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  background: transparent;
}

.brand,
.site-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #151515;
  color: #fff;
}

.site-nav {
  gap: 22px;
  color: #4f4f4f;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  padding: 8px 0;
}

.hero,
.signin-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 452px);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 64px 0 86px;
}

.hero-copy,
.signin-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #4d4d4d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin-bottom: 34px;
  color: #4d4d4d;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 760;
}

.primary-link {
  background: var(--ink);
  color: #fff;
}

.secondary-link {
  border: 1px solid #cfcfcf;
  background: rgba(255, 255, 255, 0.64);
}

.hero-visual {
  justify-self: center;
  width: min(100%, 452px);
}

.visual-window {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    #d7d7d7;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.window-bar {
  display: flex;
  gap: 8px;
  height: 52px;
  align-items: center;
  border-bottom: 1px solid #e4e4e4;
  padding: 0 20px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9a9a9a;
}

.visual-lines {
  display: grid;
  gap: 18px;
  padding: 54px 44px;
}

.visual-lines i {
  display: block;
  height: 56px;
  border-radius: 8px;
  background: #efefef;
}

.visual-lines i:nth-child(1) {
  width: 72%;
}

.visual-lines i:nth-child(2) {
  width: 100%;
}

.visual-lines i:nth-child(3) {
  width: 88%;
}

.visual-lines i:nth-child(4) {
  width: 62%;
}

.signin-page {
  min-height: calc(100vh - 80px);
}

.signin-wrap {
  min-height: calc(100vh - 80px);
  padding: 56px 0 86px;
}

.signin-copy h1 {
  max-width: 520px;
}

.signin-panel {
  justify-self: center;
  width: 100%;
  border-radius: 14px;
  background: var(--panel);
  padding: 44px 30px 30px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.panel-header {
  text-align: center;
}

.panel-header h2 {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 560;
}

.panel-header p {
  margin-bottom: 27px;
  color: #555154;
  font-size: 20px;
  line-height: 1.3;
}

.provider-list {
  display: grid;
  gap: 13px;
}

.provider {
  display: flex;
  width: 100%;
  height: 61px;
  align-items: center;
  gap: 20px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: var(--field);
  color: #202124;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  text-align: left;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.provider:hover {
  background: #e9e9e9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.provider:focus-visible,
.primary-link:focus-visible,
.secondary-link:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.35);
  outline-offset: 3px;
}

.google-logo {
  width: 32px;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.microsoft-logo {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.microsoft-logo i:nth-child(1) {
  background: #f25022;
}

.microsoft-logo i:nth-child(2) {
  background: #7fba00;
}

.microsoft-logo i:nth-child(3) {
  background: #00a4ef;
}

.microsoft-logo i:nth-child(4) {
  background: #ffb900;
}

.mini-logo {
  flex: 0 0 32px;
  width: 32px;
  overflow: visible;
  font-size: 5px;
  font-weight: 800;
  white-space: nowrap;
}

.aol-logo {
  color: #16589a;
}

.yahoo-logo {
  color: #5f01d1;
}

.trust-note {
  margin: 26px 0 0;
  color: #6a6a6a;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.feature-band article {
  min-height: 210px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-band span {
  color: #777;
  font-size: 13px;
  font-weight: 850;
}

.feature-band h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.feature-band p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.admin-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.admin-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.admin-actions button,
.row-actions button,
.user-form button {
  min-height: 40px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.admin-actions button,
.user-form button {
  padding: 0 16px;
}

.admin-actions button:last-child,
.user-form button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.admin-stats article {
  padding: 22px;
}

.admin-stats span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.admin-stats strong {
  font-size: 34px;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.admin-card {
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: 220px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.search-box input {
  width: 100%;
  height: 40px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.user-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.55fr)) auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.user-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.user-form input,
.user-form select {
  width: 100%;
  height: 40px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.account-table {
  display: grid;
  min-width: 760px;
}

.account-card {
  overflow-x: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 0.5fr 0.5fr;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  font-size: 15px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  min-height: 48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.status.active {
  background: #e7f4ec;
  color: #1f7a3f;
}

.status.pending {
  background: #fff2d8;
  color: #92620f;
}

.status.blocked {
  background: #f8e2e2;
  color: #a83232;
}

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

.row-actions form {
  margin: 0;
}

.row-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.activity-list li:last-child {
  border-bottom: 0;
}

.activity-list strong {
  font-size: 14px;
}

.activity-list span,
.activity-list time {
  color: var(--muted);
  font-size: 14px;
}

.empty-state,
.db-alert {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.empty-state {
  padding: 24px;
}

.db-alert {
  padding: 28px;
}

.db-alert h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
}

.db-alert code {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .signin-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .signin-panel {
    max-width: 452px;
  }

  .signin-wrap .signin-panel {
    order: -1;
  }

.feature-band {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: start;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    order: -1;
  }

  .user-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .signin-wrap,
  .admin-page,
  .feature-band {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 15px;
  }

  h1 {
    font-size: 42px;
  }

  .signin-panel {
    padding: 36px 18px 24px;
  }

  .provider {
    height: 58px;
    padding: 0 18px;
    font-size: 18px;
  }

  .admin-page {
    padding-top: 36px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

  .user-form {
    grid-template-columns: 1fr;
  }
}

.signin-page.login-only {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.signin-page.login-only .signin-wrap {
  display: block;
  width: min(452px, 100%);
  min-height: auto;
  margin: 0;
  padding: 0;
}

.signin-page.login-only .signin-panel {
  max-width: 452px;
}
.login-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.login-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.login-form button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.provider.selected {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.form-message {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.form-message.success {
  background: #e7f4ec;
  color: #1f7a3f;
}

.form-message.error {
  background: #f8e2e2;
  color: #a83232;
}

.form-message.notice {
  background: #fff2d8;
  color: #92620f;
}

.signin-redirect {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.signin-redirect p {
  margin: 0;
  color: var(--muted);
}
.loading-state {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.loading-state[hidden] {
  display: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #dddddd;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.login-form button.secondary-button {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}