@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  direction: rtl;
  font-weight: 300;
}

/* General Styles */
body {
  font-family: "Tajawal", sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.wrapper {
  width: 400px;
  max-width: 90%;
  height: 73vh;
  /* Adjust height as needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background-color: white;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-sizing: border-box;
}

header {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.field {
  margin-bottom: 20px;
  position: relative;
}

.input-area {
  display: flex;
  align-items: center;
  position: relative;
}

.input-area input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.input-area i.icon {
  position: absolute;
  right: 10px;
  font-size: 18px;
  color: #aaa;
}

.input-area i.error-icon {
  display: none;
  position: absolute;
  right: 10px;
  color: red;
}

.error-txt {
  color: red;
  font-size: 14px;
  display: none;
}

.pass-txt {
  text-align: right;
  font-size: 14px;
  margin-bottom: 20px;
}

.pass-txt a {
  color: #374f57;
  text-decoration: none;
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #374f57;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #2c3c47;
}

.sign-txt {
  text-align: center;
  font-size: 14px;
  margin: 10px 0;
}

.sign-txt a {
  color: blue;
  text-decoration: none;
  font-weight: 500;
}

.line {
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}

.media-options {
  text-align: center;
}

.media-options a {
  background-color: #ffffff;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: background-color 0.3s ease;
  direction: ltr;
}

.media-options a:hover {
  background-color: #f0f0f0;
}

.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .wrapper {
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .input-area input {
    padding: 10px 30px 10px 10px;
  }

  .input-area i.icon {
    font-size: 16px;
  }

  .media-options a {
    padding: 10px;
    font-size: 14px;
  }
}

.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: white;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.google i {
  color: #dd4b39;
  /* Google red */
  font-size: 20px;
}

.google:hover {
  background-color: #f0f0f0;
}


.error {
  color: #ff0800; /* Red color for errors */
  font-size: 0.875em; /* Slightly smaller text */
  margin-top: 5px;
  font-weight: 800;
}

.error-txt {
  display: block;
  margin-top: 5px;
}
