@import url(https://fonts.googleapis.com/css?family=Poppins:300);
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700&display=swap');

body{
    height: 100vh;
    overflow: auto;
    font-family: "Poppins";
  background: #ffffff;
}
.login-page {
  width: 400px;
  padding: 8% 0 0;
  margin: auto;
}
.form {
  position: relative;
  z-index: 1;
  background: #2bd257;
  max-width: 400px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form input {
  font-family: "Poppins", sans-serif;
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  border-radius: 7px;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
  direction: rtl;
  text-align: right;
}
.form button {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: #000000;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  border-radius: 7px;
  font-size: 14px;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
}
.form button:hover,.form button:active,.form button:focus {
  background: #0e2941;
}
.form .message {
  margin: 15px 0 0;
  color: #b3b3b3;
  font-size: 12px;
}
.form .message a {
  color: #234666;

  font-weight: bold;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  transition: color 0.2s;
}
.form .message a:hover {
    color: #2bd257;
}
.form .register-form {
  display: none;
}

.brand-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(43, 210, 87, 0.25), 0 2px 8px rgba(0,0,0,0.10);
  border: 4px solid #fff;
  background: #fff;
}

.arabic-brand {
  margin-top: 16px;
  font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', Arial, sans-serif;
  font-size: 1.2rem;
  color: #234666;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  direction: rtl;
  text-shadow: 0 2px 8px rgba(43, 210, 87, 0.10);
}

/* Enhance form colors and shadow */
.form {
  background: linear-gradient(135deg, #ffffff 0%, #e6f9ee 100%);
  box-shadow: 0 8px 32px 0 rgba(35, 70, 102, 0.18), 0 1.5px 8px 0 rgba(43, 210, 87, 0.10);
  border-radius: 20px;
  border: 1.5px solid #2bd257;
}

/* Enhance button color for better contrast */
.form button {
  background: #234666;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(35, 70, 102, 0.10);
}

.form button:hover,
.form button:active,
.form button:focus {
  background: #2bd257;
  color: #234666;
  transition: background 0.3s, color 0.3s;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 0;
    margin: 0;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }
  .login-page {
    width: 100%;
    padding: 24px 0 0;
    margin: 0;
  }
  .form {
    max-width: 95vw;
    margin: 0 auto 32px;
    padding: 24px 8px;
    border-radius: 14px;
  }
  .brand-logo {
    width: 72px;
    height: 72px;
  }
  .arabic-brand {
    font-size: 1rem;
    margin-top: 10px;
  }
  .form input,
  .form button {
    font-size: 1rem;
    padding: 12px;
  }
  .form h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .form {
    padding: 12px 2px;
    border-radius: 10px;
  }
  .brand-logo {
    width: 56px;
    height: 56px;
  }
  .arabic-brand {
    font-size: 0.95rem;
  }
}

.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-left: 44px;
  padding-right: 15px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #234666;
  font-size: 1.2em;
  transition: color 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  /* Ensures the icon is always centered vertically */
}

.toggle-password:hover {
  color: #2bd257;
}
