@import url('/base.css');

.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  width: min(390px, calc(100% - 48px));
  margin: auto;
  padding: 50px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  font-weight: 780;
  letter-spacing: -1.4px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand span {
  font-weight: 500;
  letter-spacing: 0;
  font-size: 11px;
  border: 1px solid #d9ddd3;
  padding: 4px 7px;
  border-radius: 5px;
  margin-left: 2px;
  text-transform: uppercase;
}
.login-card .eyebrow {
  margin-top: 74px;
}
.login-card h1 {
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1.07;
  letter-spacing: -2.5px;
  margin: 18px 0;
  font-weight: 550;
}
.login-card form {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}
.login-card label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}
.login-card input {
  width: 100%;
}
.primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.primary span {
  float: right;
}
.login-card .primary {
  margin-top: 15px;
}
.login-foot {
  margin-top: 32px;
  font-size: 12px;
  color: #858b80;
}
.login-art {
  background: #d8edb8;
  position: relative;
  overflow: hidden;
  margin: 18px 18px 18px 0;
  border-radius: 20px;
  min-height: 650px;
}
.orbit {
  width: 520px;
  height: 520px;
  border: 1px solid #889c6966;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
}
.orbit-two {
  width: 340px;
  height: 340px;
  background: #c5e499;
}
.orbit-three {
  width: 170px;
  height: 170px;
  background: #243322;
  border: 0;
}
.art-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #273724;
  position: absolute;
  top: calc(48% - 260px);
  left: calc(50% - 18px);
}
.art-caption {
  position: absolute;
  bottom: 48px;
  left: 48px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.header {
  height: 88px;
  border-bottom: 1px solid var(--border);
  padding: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #fafbf7;
}
.header nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.header nav a {
  color: #626b5f;
  text-decoration: none;
}
.header nav a:hover {
  color: var(--ink);
}
.account {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}
.text-button {
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.workspace {
  max-width: 1480px;
  margin: 0 auto;
  padding: 52px 4.5% 24px;
}
.overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  scroll-margin-top: 20px;
}
.eyebrow {
  color: #7a8372;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 700;
}
.overview h1 {
  font-size: clamp(30px, 3.7vw, 46px);
  font-weight: 500;
  letter-spacing: -1.9px;
  margin: 12px 0;
}
.overview h1 span {
  color: #7e9d4b;
}
.overview p {
  font-size: 14px;
  margin: 0;
}
.refresh {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
}
.refresh span {
  font-size: 11px;
  color: var(--muted);
}
.secondary {
  border: 1px solid #d8ddd1;
  background: #fff;
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat > span {
  font-size: 12px;
  color: #5a6353;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat strong {
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat small {
  color: #7a8372;
  font-size: 11px;
}
.stat-accent {
  background: #e4efcf;
  border-color: #d5e5b9;
}
.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #658a32;
  border-radius: 50%;
}
.chart-card,
.users-card,
.events-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 28px;
  overflow: hidden;
  scroll-margin-top: 24px;
}
.section-heading {
  padding: 26px 28px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 8px 0 0;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.legend-signins {
  background: #354831;
}
.legend-register {
  background: #b8d88a;
}
.chart {
  padding: 0 28px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 120px;
}
.gridline {
  stroke: #edf0e9;
  stroke-width: 1;
}
.axis {
  fill: #8b9385;
  font-size: 10px;
}
.bar-signins {
  fill: #354831;
}
.bar-register {
  fill: #b8d88a;
}
.chart-note {
  font-size: 10px;
  color: #7b8473;
  margin: 4px 28px 22px;
}
#search-form {
  display: flex;
  gap: 8px;
}
#search {
  width: 240px;
  padding: 9px 12px;
  font-size: 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}
th {
  background: #f8f9f5;
  color: #788170;
  font-weight: 500;
  border-block: 1px solid var(--border);
  padding: 13px 18px;
}
td {
  padding: 18px;
  border-bottom: 1px solid #edf0e8;
  color: #69715f;
  font-variant-numeric: tabular-nums;
}
td:first-child,
th:first-child {
  padding-left: 28px;
}
.user-email {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
}
.user-active {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  color: #587932;
}
.pagination {
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 6px;
}
.pagination button {
  padding: 7px 12px;
}
.pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 10px;
  color: #7a8372;
  font-size: 10px;
}
.events {
  list-style: none;
  padding: 0 28px;
  margin: 0;
}
.events li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #edf0e8;
}
.event-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f4e9;
  color: #526940;
}
.events li > div {
  flex: 1;
  min-width: 0;
}
.events strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.events .muted {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.events time {
  color: #7a8372;
  font-size: 11px;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #88917e;
  font-size: 10px;
  padding: 0 0 12px;
}
.error-banner {
  border: 1px solid #e5c9b7;
  background: #fff4e9;
  color: #8b432c;
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  border-radius: 8px;
}
.error {
  color: #a04131;
  font-size: 13px;
  line-height: 1.5;
}
.traffic-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 28px 24px;
}
.traffic-stats article {
  background: #f7f9f2;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.traffic-stats article span {
  font-size: 12px;
  color: #59694d;
}
.traffic-stats strong {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1;
}
.traffic-stats small {
  font-size: 11px;
  color: var(--muted);
}
.traffic-chart-heading {
  padding: 0 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.2px;
  margin: 0;
}
.section-heading h3 {
  margin-top: 8px;
}
.traffic-note {
  margin: 16px 28px 24px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.legend-website,
.bar-website {
  background: #354831;
  fill: #354831;
}
.legend-login,
.bar-login {
  background: #92b37c;
  fill: #92b37c;
}
.legend-registration-view,
.bar-registration-view {
  background: #d6b36b;
  fill: #d6b36b;
}
@media (max-width: 700px) {
  .traffic-stats {
    grid-template-columns: 1fr;
    margin-inline: 18px;
    gap: 10px;
  }
  .traffic-stats article {
    padding: 16px;
  }
  .traffic-note {
    margin-inline: 18px;
  }
  .traffic-chart-heading {
    padding-inline: 18px;
  }
}
@media (min-width: 1600px) {
  .login-art {
    margin: 30px;
  }
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview {
    align-items: flex-start;
    flex-direction: column;
  }
  .header nav {
    gap: 18px;
  }
  .refresh {
    flex-wrap: wrap;
  }
  .stat {
    padding: 22px;
  }
}
@media (max-width: 700px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-card .eyebrow {
    margin-top: 55px;
  }
  .header {
    height: auto;
    min-height: 76px;
    padding-block: 18px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .header .brand {
    font-size: 25px;
  }
  .header nav {
    order: 3;
    width: 100%;
  }
  .account {
    gap: 12px;
  }
  .workspace {
    padding-top: 34px;
  }
  .overview {
    margin-bottom: 26px;
  }
  .overview h1 {
    letter-spacing: -1.1px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px 14px;
    gap: 14px;
  }
  .stat > span {
    font-size: 11px;
  }
  .stat strong {
    font-size: 36px;
  }
  .stat small {
    font-size: 10px;
    line-height: 1.5;
  }
  .section-heading {
    padding: 22px 18px;
    flex-wrap: wrap;
  }
  h2 {
    font-size: 18px;
  }
  .chart {
    padding: 0 12px;
  }
  .chart-note {
    margin-inline: 18px;
    line-height: 1.6;
  }
  #search-form {
    width: 100%;
  }
  #search {
    width: 100%;
  }
  .events {
    padding-inline: 18px;
  }
  .events li {
    flex-wrap: wrap;
  }
  .events time {
    margin-left: 46px;
    width: 100%;
  }
  .pagination {
    padding-inline: 18px;
  }
  footer {
    flex-direction: column;
    line-height: 1.5;
    gap: 8px;
  }
}
