@font-face {
  font-family: Louguiya;
  src: url(../images/Louguiya.ttf);
}

@font-face {
  font-family: Louguiya-Bold;
  src: url(../images/Louguiya-Bold.ttf);
}

@font-face {
  font-family: LouguiyaFR;
  src: url(../images/LouguiyaFR.ttf);
}


@font-face {
  font-family: LouguiyaFR-Bold;
  src: url(../images/LouguiyaFR-Bold.ttf);
}

body {
  margin: 0;
  font-family: Louguiya, LouguiyaFR;
}

.container {
  display: flex;
  height: 100vh;
}

.left-side {
  background-color: #00a95c;
  color: white;
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  user-select: none;
  padding-top: 40px;
  padding-bottom: 30px;
}
/*
.left-side:before, .left-side:after {
  content: '';
  display: block;
  width: 100%;
  height: 40px;
  background-color: #ce1f26;
  position: absolute;
  z-index: 1;
}

.left-side:before {
  top: 0;
}

.left-side:after {
  bottom: 0;
}*/

.left-side .logo img {
  width: 150px;
  height: 150px;
}

.left-side .slogan img {
  width: 180px;
  height: 60px;
  filter: invert(100%) brightness(500%);
}

.ministry-name h1 {
  font-family: Louguiya-Bold;
  margin: 10px 0;
  font-size: 28px;
}

.right-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  padding: 0 30px 0 30px;
  z-index: 2;
}

.auth-container {
  font-family: LouguiyaFR-Bold, Louguiya-Bold;
  text-align: left;
  max-width: 300px;
  width: 100%;
}

.auth-container h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.auth-container form {
  display: flex;
  flex-direction: column;
}

.auth-container label {
  margin-bottom: 5px;
  font-family: LouguiyaFR;
}

.auth-container input[type="text"],
.auth-container input[type="password"] {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#password {
  padding-right: 70px;
}





.inputBox {
  position: relative;
  width: 250px;
}

.inputBox input {
  padding: 15px 70px 15px 20px;
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  border-radius: 5px;
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1em;
}

/* .inputBox span {
  position: absolute;
  left: 0;
  padding: 15px 20px;
  pointer-events: none;
  font-size: 1em;
  transition: 0.5s;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.25);
  letter-spacing: 0.1em;
  user-select: none;
}

.inputBox input:focus ~ span,
.inputBox input:valid ~ span {
  color: #1d2b3a;
  font-size: 0.75em;
  transform: translateX(20px) translateY(-7px);
  padding: 0 5px;
  background: #00dfc4;
  border-radius: 2px;
} */

#toggle {
  position: absolute;
  top: 54.5%;
  transform: translateY(-50%);
  right: 7.5%;
  background: url(../images/eye-close.png);
  background-size: cover;
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 9px;
}

#toggle.hide {
  background: url(../images/eye-open.png);
  background-size: cover;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-container input {
  margin-right: 5px;
}

.container2 {
  margin: 1rem 0;
  display: flex;
  align-items: center;
}

.checkbox-text {
  margin-left: 1rem;
  user-select: none;
  cursor: pointer;
  color: black;
}

.check-input {
  display: none;
}

.checkbox {
  width: 7px;
  height: 7px;
  border: 1px solid #ccc;
  border-radius: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 3px;
  transition: 0.3s all;
}

.checkbox svg {
  width: 10px;
  height: 10px;
}

.check-input:checked + .checkbox {
  background: #00a95c;
  border: 1px solid #00a95c;
}

.check-input:checked + .checkbox svg path{
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  stroke: #fff;
  stroke-width: 3;
  animation: check 4s forwards;
}

.checkbox::before {
  content: "";
  background: #00ff8c;
  position: absolute;
  border-radius: 25%;
  transform: scale(0);
  opacity: 1;
  display: block;
  width: 35px;
  height: 35px;
}

.check-input:checked + .checkbox::before {
  animation: ripple 0.5s;
}

@keyframes check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.btn {
  font-family: LouguiyaFR-Bold, Louguiya-Bold;
  padding: 10px;
  border: 2px solid #00a95c;
  border-radius: 5px;
  background: none;
  color: white;
  cursor: pointer;
  margin-bottom: 10px;
  max-width: 75%;
  transition: color 0.4s linear;
  position: relative;
  z-index: 1;
}

.btn:hover {
  color: black;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #00a95c;
  z-index: -1;
  transition: transform 0.5s;
  transform-origin: 0 0;
  transition-timing-function: cubic-bezier(0.5,1.6,0.4,0.7);
  transform: scaleY(1);
}

.btn:hover::after {
  transform: scaleY(0);
}

.auth-container .forgot-password {
  font-family: LouguiyaFR;
  color: #00a95c;
  text-decoration: none;
  font-size: 13px;
}

.auth-container .forgot-password:hover {
  text-decoration: underline;
}

.alert-danger {
    color: red;
    font-weight: bold;
}

::selection {
  background: #00a95c75
}


/* Device-specific adjustments */

@media (max-width: 890px) and (min-width: 835px) {
  .container {
      flex-direction: column;
      height: auto;
  }

  .left-side {
    flex: 0.5;
  }

  .left-side:before, .left-side:after {
    content: '';
    display: block;
    width: 100%;
    background-color: #ce1f26;
    position: relative;
    height: 20px;
  }

  .left-side:before {
    top: auto;
    bottom: 40px;
  }

  .left-side:after {
    top: 30px;
    bottom: auto;
  }

  .ministry-name h1 {
    font-size: 20px;
  }

  .left-side .logo img {
      width: 120px;
      height: 120px;
  }

  .auth-container {
      max-width: 80%;
  }
  
  .auth-container h2 {
      text-align: center;
  }

  #password {
    padding-right: 50px;
  }

  #toggle {
    top: 84.2%;
    right: 16.5%;
  }
}


@media (max-width: 834px) {
  .container {
      flex-direction: column;
      height: auto;
  }

  .left-side {
    flex: 0.5;
  }

  .left-side:before, .left-side:after {
    content: '';
    display: block;
    width: 100%;
    background-color: #ce1f26;
    position: relative;
    height: 20px;
  }

  .left-side:before {
    top: auto;
    bottom: 40px;
  }

  .left-side:after {
    top: 30px;
    bottom: auto;
  }

  .ministry-name h1 {
    font-size: 20px;
  }

  .left-side .logo img {
      width: 120px;
      height: 120px;
  }

  .auth-container {
      max-width: 80%;
  }
  
  .auth-container h2 {
      text-align: center;
  }

  #toggle {
    top: 84.2%;
    right: 18.5%;
  }
}


@media (max-width: 430px) {
  .container {
      flex-direction: column;
  }

  .left-side {
    flex: 0.5;
  }

  .left-side:before, .left-side:after {
    content: '';
    display: block;
    width: 100%;
    background-color: #ce1f26;
    position: relative;
    height: 20px;
  }

  .left-side:before {
    top: auto;
    bottom: 40px;
  }

  .left-side:after {
    top: 30px;
    bottom: auto;
  }

  .ministry-name h1 {
    font-size: 20px;
  }

  .left-side .logo img {
      width: 90px;
      height: 90px;
  }

  .auth-container h2 {
      text-align: center;
      font-size: 15px;
  }

  .auth-container button {
      padding: 5px;
  }

  #toggle {
    top: 78.5%;
    right: 21.5%;
  }
}

@media (max-width: 390px) {
  #toggle {
    top: 81.7%;
  }
}

@media (max-width: 312px) {
  #toggle {
    right: 21.5%;
  }
}




.button {
  font-family: LouguiyaFR-Bold, Louguiya-Bold;
  background-color: #00a95c;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 5px 15px rgba(0, 176, 47, 0.3);
  margin-bottom: 20px;
}

.button:hover {
  background-color: #008549;
}

.button:active {
  transform: scale(0.95);
}