/* Login Page CSS */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  min-height: 100vh;
  direction: rtl;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Login Container */
.login-container {
  min-height: 100vh;
}



.image-wrapper {
  position: relative;
  height: 100%;
  display: flex
;
  align-items: center;
  justify-content: center;
  background-image: url(../image/image0.svg);
  background-size: auto;
  border-radius: 0 0 105px 0px;
}

.decorative-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.layer-shape {
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
}

/* Right Side - Login Form */
.login-form-section {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

/* Header */
.login-header {
  margin-bottom: 2rem;
}

.login-title {
  color: #192126;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.login-subtitle {
  color: #cbcbcb;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

/* Form Styles */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #192126;
  font-size: 1.1rem;
}

.label-text {
  color: #192126;
}

.required {
  color: #01d0fe;
  margin-right: 0.25rem;
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-left: 3rem;
  border: 2px solid #eef2f8;
  border-radius: 15px;
  font-size: 1.1rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  background: white;
  padding-right: 38px;
}

.form-control:focus {
  outline: none;
  border-color: #01d0fe;
  box-shadow: 0 0 0 0.2rem rgba(1, 208, 254, 0.25);
}

.form-control::placeholder {
  color: #cccccc;
  font-weight: 400;
}

.form-control.is-valid {
  border-color: #32d34b;
}

.form-control.is-invalid {
  border-color: #ff4757;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a3c3d0;
  font-size: 1.1rem;
}

.password-toggle {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.password-toggle:hover img {
  opacity: 1;
}

.checkbox-icon {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.checkbox-icon img {
  width: 20px;
  height: 20px;
}

.login-bg-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  opacity: 0.8;
}

/* Form Options */
.form-options {
  margin-bottom: 1.5rem;
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  border: 2px solid #a3c3d0;
  border-radius: 4px;
  background-color: transparent;
}

.form-check-input:checked {
  background-color: #01d0fe;
  border-color: #01d0fe;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(1, 208, 254, 0.25);
}

.form-check-label {
  color: #192126;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  padding-right: 35px;
}

.forgot-password {
  color: #01d0fe;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #1897ff;
  text-decoration: underline;
}

/* Submit Button */
.login-btn {
  background: #01d0fe;
  border: none;
  border-radius: 15px;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.login-btn:hover {
  background: #1897ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 208, 254, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  background: #a3c3d0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Sign Up Link */
.signup-text {
  color: #192126;
  font-size: 1rem;
  font-weight: 400;
}

.signup-link {
  color: #01d0fe;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.signup-link:hover {
  color: #1897ff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-form-section {
    padding: 1rem;
  }
  
  .login-title {
    font-size: 2.5rem;
  }
  
  .login-subtitle {
    font-size: 1rem;
  }
  
  .form-control {
    padding: 0.875rem 1.25rem;
    padding-left: 2.5rem;
    font-size: 1rem;
  }
  
  .login-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .login-title {
    font-size: 2rem;
  }
  
  .form-control {
    padding: 0.75rem 1rem;
    padding-left: 2.25rem;
  }
  
  .login-btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
