:root {
  --ap-blue: #00a5df;
  --ap-blue-dark: #0089ba;
  --ap-navy: #282e45;
  --ap-amber: #ffb300;
  --ap-bg: #f3f6fb;
  --ap-line: #d7dfe4;
  --ap-muted: #6d7c8c;
  --ap-soft: #f0fafd;
}

.login-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Manrope, system-ui, sans-serif;
  background: #fff;
  color: var(--ap-navy);
}

.aps-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--ap-line);
  padding-top: env(safe-area-inset-top);
}

.aps-top-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aps-brand img {
  width: min(168px, 46vw);
  height: auto;
  display: block;
  background: #07070d;
  border-radius: 10px;
  padding: 6px 8px;
}

.aps-nav { align-items: center; gap: 22px; margin-left: 28px; }
.aps-nav a { color: var(--ap-navy); font-weight: 700; text-decoration: none; }
.aps-nav a:hover { color: var(--ap-blue-dark); }

.aps-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.aps-btn-ghost, .aps-btn-sm {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  padding: 0 14px;
  border: 0;
}
.aps-btn-ghost { background: #fff; color: var(--ap-navy); border: 1px solid var(--ap-line); }
.aps-btn-sm { background: var(--ap-blue); color: #fff; }
.aps-btn-ghost:hover { background: var(--ap-bg); }
.aps-btn-sm:hover { background: var(--ap-blue-dark); }

.aps-checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.aps-checks li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.aps-checks i { color: var(--ap-blue); font-size: 18px; }

.aps-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.aps-metrics div { background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; padding: 12px; }
.aps-metrics strong, .aps-metrics span { display: block; }
.aps-metrics strong { font-size: 18px; }
.aps-metrics span { color: var(--ap-muted); font-size: 12px; margin-top: 2px; }

.aps-stage { margin-top: 36px; }
.aps-window { background: #fff; border: 1px solid var(--ap-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(40, 46, 69, .1); overflow: hidden; }
.aps-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f7f9fc; border-bottom: 1px solid var(--ap-line); color: var(--ap-muted); font-size: 13px; font-weight: 700; }
.aps-window-bar i { width: 9px; height: 9px; border-radius: 99px; background: #d7dfe4; display: block; }
.aps-window-bar i:first-child { background: #ffb300; }
.aps-window-bar span { margin-left: 8px; }
.aps-window-body { display: grid; grid-template-columns: 150px 1fr; min-height: 250px; }
.aps-window-body aside { background: #282e45; color: #c9d2dc; padding: 16px 12px; display: grid; align-content: start; gap: 8px; font-size: 13px; }
.aps-window-body aside b { color: #fff; margin-bottom: 6px; }
.aps-window-body aside span { padding: 7px 8px; border-radius: 8px; }
.aps-window-body aside .on { background: rgba(0, 165, 223, .25); color: #fff; }
.aps-window-main { padding: 16px; }
.aps-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aps-kpis div { background: var(--ap-soft); border-radius: 12px; padding: 10px 12px; }
.aps-kpis small { color: var(--ap-muted); display: block; font-size: 12px; }
.aps-kpis strong { font-size: 16px; }
.aps-bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; margin: 16px 0; }
.aps-bars span { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #00a5df, #7e8ee7); }
.aps-rows { display: grid; gap: 8px; }
.aps-rows div { display: flex; align-items: center; gap: 8px; background: #f7f9fc; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.aps-rows em { font-style: normal; font-weight: 800; color: var(--ap-blue-dark); }
.aps-rows b { margin-left: auto; color: #0f9f6e; font-size: 12px; }
.aps-rows b.wait { color: #c2680a; }
.aps-rows b.due { color: #d51c29; }

.aps-steps, .aps-roles { padding: 48px 0; }
.aps-steps { background: #fff; }
.aps-roles { background: var(--ap-bg); }
.aps-steps h2, .aps-features h2, .aps-roles h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.aps-steps article, .aps-roles article { height: 100%; background: #fff; border: 1px solid var(--ap-line); border-radius: 16px; padding: 18px; }
.aps-steps article span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.aps-steps article strong, .aps-roles article strong { display: block; margin-bottom: 6px; }
.aps-steps article p, .aps-roles article p { margin: 0; color: var(--ap-muted); line-height: 1.5; }
.aps-roles article i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-soft); color: var(--ap-blue); font-size: 20px; margin-bottom: 12px; }
.aps-cta { margin-top: 18px; background: #282e45; color: #fff; border-radius: 18px; padding: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.aps-cta p { margin: 4px 0 0; color: #c9d2dc; }
.aps-foot { border-top: 1px solid var(--ap-line); padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); color: var(--ap-muted); font-size: 13px; font-weight: 700; }

.aps-hero {
  background:
    radial-gradient(480px 220px at 0% 0%, rgba(0, 165, 223, .16), transparent 70%),
    var(--ap-bg);
  padding: 28px 0 36px;
}

.aps-eyebrow {
  margin: 0 0 10px;
  color: var(--ap-blue);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

.aps-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ap-navy);
}

.aps-lead {
  margin: 0 0 18px;
  color: var(--ap-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 38rem;
}

.aps-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: #fff;
  color: #8a5a00;
  border: 1px solid #ffe08a;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.aps-pill i { color: var(--ap-amber); }

.aps-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(40, 46, 69, .08);
  padding: 22px 18px 18px;
}

.aps-card h2 {
  margin: 16px 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.aps-card-note { color: var(--ap-muted); margin: 0 0 16px; }

.aps-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 0;
}

.aps-tabs .nav-link {
  width: 100%;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  color: var(--ap-navy);
  font-weight: 800;
  min-height: 46px;
  background: #fff;
}

.aps-tabs .nav-link.active {
  background: var(--ap-soft);
  color: var(--ap-blue-dark);
  border-color: #b7e6f6;
}

.aps-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ap-navy);
}

.aps-input {
  min-height: 48px;
  border-radius: 10px;
  border-color: var(--ap-line);
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--ap-navy);
}

.aps-input:focus {
  border-color: var(--ap-blue);
  box-shadow: 0 0 0 .2rem rgba(0, 165, 223, .16);
}

.aps-password { position: relative; }
.aps-password .aps-input { padding-right: 52px; margin-bottom: 0; }
.aps-password { margin-bottom: 16px; }

.aps-reveal {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ap-blue-dark);
  border-radius: 10px;
}

.aps-btn {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--ap-blue);
  color: #fff;
  font-weight: 800;
}

.aps-btn:hover, .aps-btn:focus { background: var(--ap-blue-dark); color: #fff; }

.aps-fine {
  margin: 10px 0 0;
  color: var(--ap-muted);
  font-size: 12px;
  text-align: center;
}

.aps-card .alert { border: 0; border-radius: 10px; font-weight: 700; }

.aps-features { padding: 8px 0 48px; background: #fff; }

.aps-feature {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  background: #fff;
}

.aps-feature span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ap-soft);
  color: var(--ap-blue);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 18px;
}

.aps-feature strong { display: block; margin-bottom: 4px; }
.aps-feature p { margin: 0; color: var(--ap-muted); font-size: 14px; line-height: 1.45; }

@media (max-width: 991.98px) {
  .aps-hero { padding-top: 20px; }
  .aps-card { padding: 16px 14px; }
  .aps-window-body { grid-template-columns: 1fr; }
  .aps-window-body aside { display: none; }
  .aps-stage { margin-top: 22px; }
  .aps-steps, .aps-roles { padding: 32px 0; }
  .aps-cta { align-items: stretch; }
  .aps-cta .aps-btn-sm { width: 100%; }
}

@media (max-width: 420px) {
  .aps-btn-ghost { display: none; }
  .aps-metrics { grid-template-columns: 1fr; }
  .aps-kpis { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  .aps-hero { padding: 56px 0 64px; }
  .aps-card { padding: 28px 26px 22px; }
}
