:root {
  --primary-color: #4361EE;
  --secondary-color: #3A0CA3;
  --accent-color: #4CC9F0;
  --light-color: #F8F9FA;
  --dark-color: #212529;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --text-color: #333;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-container {
  display: flex;
  min-height: 100vh;
}

/* Enhanced background styles */
.left-panel {
  width: 50%;
  background: linear-gradient(135deg, #3a0ca3, #4361ee, #3f37c9);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.left-panel::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: 
    linear-gradient(rgba(255,255,255,0.07) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 2px, transparent 2px);
  background-size: 100px 100px;
  opacity: 0.5;
  animation: backgroundMove 30s linear infinite;
}

.left-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(76, 201, 240, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(67, 97, 238, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  z-index: 1;
}

/* Add floating particles */
.left-panel .particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
  opacity: 0.2;
}

.particle:nth-child(2) {
  width: 35px;
  height: 35px;
  top: 70%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 20s;
  opacity: 0.15;
}

.particle:nth-child(3) {
  width: 15px;
  height: 15px;
  top: 40%;
  left: 60%;
  animation-delay: 5s;
  animation-duration: 30s;
  opacity: 0.2;
}

.particle:nth-child(4) {
  width: 25px;
  height: 25px;
  top: 80%;
  left: 20%;
  animation-delay: 8s;
  animation-duration: 22s;
  opacity: 0.15;
}

.particle:nth-child(5) {
  width: 18px;
  height: 18px;
  top: 15%;
  left: 70%;
  animation-delay: 10s;
  animation-duration: 28s;
  opacity: 0.2;
}

@keyframes float { 0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.platform-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-top: 1rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  animation: fadeIn 1.2s ease;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.platform-description:hover {
  color: white;
  transform: translateY(-2px);
}


@keyframes backgroundMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50%) translateY(-50%); }
}

.brand-container {
  z-index: 10;
  text-align: center;
  max-width: 80%;
  animation: fadeIn 1s ease;
}

.school-logo {
  width: 500px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.25));
  transition: var(--transition);
}

.school-logo:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.3));
}

.slogan {
  color: white;
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.slogan::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-color);
  border-radius: 5px;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.slogan:hover::after {
  transform: scaleX(1);
}

/* Enhanced right panel styles */
.right-panel {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Add subtle pattern to right panel */
.right-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(#f8f9fa 1px, transparent 1px),
    radial-gradient(#f8f9fa 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.5;
}

/* Add top decorative element */
.right-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: 1;
}

/* Enhanced form container */
.form-container {
  width: 85%;
  max-width: 450px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  animation: formAppear 1s ease-out forwards;
}

@keyframes formAppear {
  from { 
    opacity: 0; 
    transform: translateY(10px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* Enhance form header */
.login-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.login-header h1 {
  font-size: 2.4rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.login-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 5px;
}

/* Enhanced greeting */
.greeting {
  font-size: 1.1rem;
  color: #666;
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(to right, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
  border-radius: 30px;
}

/* Enhanced form controls */
.form-control {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
    background: white;
}

/* Enhanced button styles */
.login-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .right-panel {
    padding: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 2rem;
  }
}
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

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

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  transition: var(--transition);
}


/* Replace your existing password toggle styles with these */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  transition: var(--transition);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* Fix for the input with icon positioning */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

/* Make sure that Font Awesome icons are displayed properly */
.input-with-icon .fa, 
.input-with-icon .fas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Adjust the form control padding to accommodate both icons */
.form-control {
  width: 100%;
  padding: 0.8rem 3rem 0.8rem 2.8rem; /* Increase right padding */
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 1rem;
  transition: var(--transition);
}

/* Remove browser's default password reveal button */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal-button {
  display: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
  background: white;
}

.form-control:focus + i {
  color: var(--primary-color);
}

.error-text {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: block;
}

.form-control.error {
  border-color: var(--error-color);
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember {
  display: flex;
  align-items: center;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.form-checkbox {
  display: none;
}

.form-checkbox:checked + .custom-checkbox {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.form-checkbox:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember label {
  font-size: 0.9rem;
  margin-bottom: 0;
  cursor: pointer;
}

.forgot-password {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.login-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  font-size : 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  transform: translateY(-2px);
}

.login-btn i {
  margin-right: 8px;
}

.poweredby {
  text-align: center;
  margin-top: 2rem;
}

.poweredby img {
  width: 150px;
  opacity: 0.7;
  transition: var(--transition);
}

.poweredby img:hover {
  opacity: 1;
}

.forgot-password-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
}

.forgot-password-container h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.forgot-password-container p {
  margin-bottom: 1.5rem;
  color: #666;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #eee;
}

.btn i {
  margin-right: 8px;
}

.hide-div {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-header, .form-group, .remember-forgot, .login-btn, .poweredby {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.login-header { animation-delay: 0.1s; }
.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.remember-forgot { animation-delay: 0.4s; }
.login-btn { animation-delay: 0.5s; }
.poweredby { animation-delay: 0.6s; }

/* Responsive styles */
@media (max-width: 992px) {
  .page-container {
      flex-direction: column;
  }
  
  .left-panel, .right-panel {
      width: 100%;
  }
  
  .left-panel {
      padding: 3rem 2rem;
  }
  
  .form-container {
      width: 100%;
      max-width: 400px;
  }
}

@media (max-width: 576px) {
  .login-header h1 {
      font-size: 1.8rem;
  }
  
  .form-container {
      width: 100%;
  }
  
  .remember-forgot {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }

  .school-logo {
    width: 280px;
  }
}
