@font-face {
  font-family: Tajawal;
  src: url('/fonts/tajawal-regular.ttf');
}
@font-face {
  font-family: Tajawal;
  src: url('/fonts/tajawal-bold.ttf');
  font-weight: 700;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f8f5;
  color: #113e36;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a {
  color: #07684f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #3d9e7b;
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 44px;
  line-height: 1.5;
}
h2 {
  font-size: 25px;
  line-height: 1.6;
}
.skip {
  position: absolute;
  top: -100px;
  right: 20px;
  background: white;
  padding: 8px;
}
.skip:focus {
  top: 5px;
}
header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(5vw, 20px);
  gap: 25px;
  border-bottom: 1px solid #d8e7df;
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #103e32;
}
.brand img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}
.brand span {
  font-size: 26px;
  font-weight: 700;
}
.brand small {
  font-size: 12px;
  display: block;
  font-weight: 400;
  color: #587264;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  flex-wrap: wrap;
}
header nav form {
  margin: 0;
}
.auth-layout {
  width: min(1100px, 90vw);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 65px;
  align-items: center;
  margin: 70px auto 80px;
}
.welcome {
  padding: 25px 0;
}
.eyebrow {
  color: #37856a;
  font-size: 13px;
  font-weight: 700;
  display: block;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.welcome h1 {
  font-size: 54px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.welcome > p {
  color: #5b7567;
  max-width: 430px;
  font-size: 18px;
}
.welcome-numbers {
  display: flex;
  gap: 35px;
  margin-top: 45px;
}
.welcome-numbers span {
  font-size: 12px;
  color: #557263;
  display: flex;
  flex-direction: column;
}
.welcome-numbers b {
  font-size: 31px;
  color: #0f634b;
}
.card {
  background: #fff;
  border: 1px solid #dce9e2;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 50px #194c3610;
}
.card h2 {
  margin-bottom: 8px;
}
.card form {
  margin-top: 24px;
}
.muted {
  color: #657a6d;
  font-size: 14px;
}
.card > p.muted {
  margin-top: 14px;
}
.card > .muted {
  margin-bottom: 20px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #3d6251;
}
input,
select {
  font: inherit;
  color: #204f3a;
  border: 1px solid #b9d2c5;
  border-radius: 9px;
  padding: 11px 13px;
  min-width: 0;
  width: 100%;
  height: 47px;
  background: #fff;
}
input[dir='ltr'] {
  text-align: left;
  font-family: Arial, sans-serif;
}
input:focus,
select:focus {
  border-color: #2a8765;
  box-shadow: 0 0 0 3px #33885b15;
}
input[readonly] {
  background: #f3f8f4;
}
button,
.button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border: 1px solid #126345;
  border-radius: 10px;
  color: #fff;
  background: #126345;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
}
button:hover,
.button:hover {
  background: #084b33;
  text-decoration: none;
}
.secondary {
  color: #17553a;
  background: #eaf4ee;
  border-color: #c4dccd;
}
.secondary:hover {
  background: #d7edde;
}
.link {
  color: #1c7150;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 30px;
  display: inline;
  font-weight: 400;
}
.link:hover {
  background: transparent;
  text-decoration: underline;
}
.switch {
  padding-top: 22px;
  margin-top: 25px;
  border-top: 1px solid #e4eee7;
  text-align: center;
  font-size: 14px;
}
.switch a {
  font-weight: 700;
}
.notice {
  padding: 17px 20px;
  border: 1px solid #b8d8c2;
  background: #e9f6ed;
  color: #285f3c;
  border-radius: 11px;
  margin: 18px 0;
  font-size: 14px;
}
.auth-layout > .notice {
  grid-column: 1/-1;
  margin-bottom: -40px;
}
.notice.error {
  border-color: #dfb7ad;
  background: #fff0ec;
  color: #8b352b;
}
.steps {
  padding-right: 22px;
  margin-top: 30px;
  color: #4b765b;
  display: grid;
  gap: 12px;
}
.steps li::marker {
  font-weight: 700;
  color: #185f39;
}
.email {
  direction: ltr;
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #66786b;
  overflow-wrap: anywhere;
}
.account-summary {
  padding: 25px 0;
}
.account-summary h1 {
  font-size: 34px;
  overflow-wrap: anywhere;
}
.account-summary > .badge {
  margin: 20px 0;
}
.account-summary > .button {
  margin: 22px 0 0 8px;
}
.badge {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  border-radius: 25px;
  background: #e3ede7;
  color: #446a52;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
}
.badge.approved {
  background: #d9efdf;
  color: #19653a;
}
.badge.pending {
  background: #fff0c8;
  color: #79601b;
}
.badge.rejected {
  background: #f3e4df;
  color: #865348;
}
.badge.suspended {
  background: #f7dddd;
  color: #8f3a3a;
}
.wide {
  width: min(1240px, 92vw);
  margin: 45px auto 70px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.admin-heading h1 {
  font-size: 35px;
}
.admin-heading .eyebrow {
  margin-bottom: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.stat {
  border: 1px solid #caddcd;
  background: #fff;
  padding: 18px 23px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat b {
  font-size: 35px;
}
.stat span {
  font-size: 14px;
}
.stat.pending {
  background: #fff9ea;
}
.stat.approved {
  background: #e6f4e9;
}
.stat.suspended {
  background: #fff1ee;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.filters a {
  border: 1px solid #c9dbcd;
  padding: 7px 16px;
  border-radius: 25px;
  background: #fff;
  font-size: 14px;
}
.filters [aria-current='page'] {
  background: #176544;
  color: white;
  border-color: #176544;
}
.users {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.user-card {
  border: 1px solid #d2e2d6;
  border-radius: 16px;
  padding: 25px;
  background: #fff;
  min-width: 0;
}
.user-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.user-title h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.user-title > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.user-title .badge {
  font-size: 11px;
  padding: 4px 9px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e1f0e6;
  color: #34724c;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.user-card form {
  margin-top: 14px;
  gap: 12px;
}
.reset-form {
  border-top: 1px solid #e0e9e2;
  padding-top: 13px;
}
.reset-form button {
  align-self: flex-start;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px;
}
.audit {
  background: white;
  border: 1px solid #d0e0d4;
  padding: 20px;
  border-radius: 14px;
}
.audit summary {
  cursor: pointer;
  font-weight: 700;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  min-width: 650px;
  width: 100%;
  font-size: 12px;
  margin-top: 14px;
}
th,
td {
  text-align: right;
  padding: 12px;
  border: 1px solid #d8e4db;
}
.empty {
  padding: 35px;
  text-align: center;
  grid-column: 1/-1;
}
footer {
  text-align: center;
  color: #7c8c7f;
  font-size: 12px;
  padding: 25px;
}
form small {
  font-weight: 400;
  color: #708773;
  margin-top: -12px;
  font-size: 12px;
}
@media (max-width: 850px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .auth-layout {
    gap: 30px;
    grid-template-columns: 1fr;
    margin: 35px auto;
  }
  .welcome {
    padding: 0;
  }
  .welcome h1 {
    font-size: 36px;
    margin-bottom: 14px;
  }
  .welcome h1 br {
    display: none;
  }
  .welcome > p {
    font-size: 16px;
    max-width: 100%;
  }
  .welcome-numbers {
    margin-top: 20px;
    gap: 30px;
  }
  .welcome-numbers b {
    font-size: 24px;
  }
  .welcome-numbers span {
    font-size: 11px;
  }
  .steps {
    display: none;
  }
  .card {
    padding: 25px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .stat b {
    font-size: 28px;
  }
  .stat span {
    font-size: 12px;
  }
  .users {
    grid-template-columns: 1fr;
  }
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-heading h1 {
    font-size: 29px;
  }
  .user-card {
    padding: 18px;
  }
  .brand img {
    width: 55px;
    height: 55px;
  }
  .brand small {
    font-size: 10px;
  }
  .auth-layout > .notice {
    margin: 0;
  }
  .account-summary {
    padding: 0;
  }
  .account-summary h1 {
    font-size: 29px;
  }
  .user-title {
    flex-wrap: wrap;
  }
  header nav {
    gap: 15px;
    font-size: 12px;
  }
  .wide {
    margin-top: 25px;
  }
}
