@font-face {
  font-family: "IBM Plex Sans Arabic";
  src:
    url("../fonts/alfont_com_IBMPlexSansArabic-Regular.woff2") format("woff2"),
    url("../fonts/alfont_com_IBMPlexSansArabic-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src:
    url("../fonts/alfont_com_IBMPlexSansArabic-Medium.woff2") format("woff2"),
    url("../fonts/alfont_com_IBMPlexSansArabic-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src:
    url("../fonts/alfont_com_IBMPlexSansArabic-SemiBold.woff2") format("woff2"),
    url("../fonts/alfont_com_IBMPlexSansArabic-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sa-600: #1b8354;
  --sa-700: #166a45;
  --sa-950: #092a1e;
  --black: #1f1b1f;
  --border: #c7ccd1;
}

html,
body {
  min-height: 100%;
}

* {
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

body {
  margin: 0;
  color: #111827;
  background: var(--sa-950);
}

.top-strip {
  height: auto;
  background: #ffffff;
  border-bottom: 0;
}

.top-strip-content {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  white-space: nowrap;
}

.top-strip a {
  color: var(--sa-600);
  text-decoration: none;
}

.flag {
  width: 16px;
  height: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.login-page {
  min-height: calc(100vh - 27px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background-image:
    linear-gradient(
      90deg,
      rgba(9, 42, 30, 0.7),
      rgba(11, 73, 55, 0.45),
      rgba(9, 42, 30, 0.9)
    ),
    url("../img/login-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-wrapper {
  width: 100%;
  max-width: 493px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-card {
  width: 100%;
  max-width: 493px;
  min-height: 496px;
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 50px 64px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.uj-logo {
  width: 92px;
  height: auto;
  margin: 0 auto 26px;
  display: block;
}

.login-card h1 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  color: #373737;
}

.login-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #69696b;
  text-align: center;
}

.form-group {
  margin-bottom: 13px;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.input-wrap {
  position: relative;
}

.form-control {
  height: 33px;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 32px 6px 10px;
  font-size: 14px;
  color: #111827;
  box-shadow: none;
}

.form-control::placeholder {
  color: #9aa4af;
}

.form-control:focus {
  border-color: var(--sa-600);
  box-shadow: 0 0 0 2px rgba(27, 131, 84, 0.12);
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #8a94a1;
  line-height: 1;
}

.forgot-link {
  display: block;
  margin: -2px 0 12px;
  font-size: 12px;
  color: #69696b;
  text-decoration: none;
  text-align: left;
}

.login-btn {
  width: 100%;
  height: 34px;
  background: var(--sa-600);
  border: 1px solid var(--sa-600);
  border-radius: 3px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.login-btn:hover,
.login-btn:focus {
  background: var(--sa-700);
  border-color: var(--sa-700);
  color: #ffffff;
}

/* Switch button */
.nafath-section-btn {
  width: 100%;
  max-width: 493px;
  height: 58px;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 65px 1fr 60px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  overflow: hidden;
  direction: ltr;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.nafath-section-btn .nafath-arrow {
  grid-column: 1;
  justify-self: start;
  color: #384250;
  font-size: 14px;
}

.nafath-section-btn .nafath-text {
  grid-column: 2;
  text-align: center;
  color: #161616;
  font-size: 14px;
  font-weight: 400;
}

.nafath-section-btn .nafath-logo {
  grid-column: 3;
  justify-self: end;
  width: 72px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.nafath-section-btn .switch-uj-logo {
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.nafath-login-form,
.nafath-code-form {
  text-align: center;
}

.nic-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.nafath-store-title {
  margin: 58px 0 12px;
  color: #596674;
  font-size: 14px;
  font-weight: 400;
}

.nafath-stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.nafath-stores a {
  display: inline-flex;
  text-decoration: none;
}

.nafath-stores img {
  width: 82px;
  height: auto;
  object-fit: contain;
  display: block;
}

.code-number {
  margin-top: 50px;
  margin-bottom: 25px;
  color: #161616;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.code-text {
  margin-top: 16px;
  margin-bottom: 14px;
  color: #384250;
  font-size: 18px;
  font-weight: 500;
}

.timer {
  margin-top: 6px;
  margin-bottom: 22px;
  color: #384250;
  font-size: 14px;
  font-weight: 400;
}

.timer span {
  color: #175cd3;
  font-weight: 600;
  font-size: 20px;
}

.cancel-btn {
  width: 100%;
  margin-top: 28px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--sa-600);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.cancel-btn:hover,
.cancel-btn:focus {
  background: var(--sa-700);
  color: #ffffff;
}

@media (max-width: 576px) {
  html,
  body {
    min-height: 100%;
    background: var(--sa-950);
  }

  .login-page {
    min-height: calc(100dvh - 27px);
    height: auto;
    padding: 22px 8px 80px;
    align-items: flex-start;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  .login-wrapper {
    max-width: 100%;
  }

  .login-card {
    max-width: 100%;
    min-height: auto;
    padding: 36px 22px 42px;
  }

  .login-card h1 {
    font-size: 18px;
  }

  .nafath-section-btn {
    max-width: 100%;
  }

  .code-number {
    font-size: 58px;
  }
  .code-text {
    font-size: 17px;
  }
}
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    overflow-x: hidden;
}

#form1 {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.loader,
.loader-two {
    width: 56px;
    height: 56px;
    display: block;
    margin: 42px auto;
    border-radius: 50%;
    box-sizing: border-box;
    border: 4px solid #e3e3e3;
    border-top-color: #1b8354;
    animation: dgaSpin 1.2s linear infinite;
}

    .loader::after,
    .loader-two::after {
        content: none !important;
    }

@keyframes dgaSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nafath-code-form .random-container {
    margin-bottom: 25px;
}

.nafath-code-form .random {
    display: block;
    margin-bottom: 25px;
    font-size: 72px;
    line-height: .8;
    font-weight: 600;
    color: #111111;
}

.nafath-code-form .nafath-code-note {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 600;
    color: #111111;
}

#countdown {
    display: none;
}
       