/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.captchaDiv{
    display: flex;
    align-items: center;
    gap: 10px;
}

.captchaImage{
    height:50px;
    border:1px solid #ccc;
}

.captchaButton{
    padding:5px 10px;
    cursor:pointer;
}

/* Login Container */
.login-container {
  display: flex;
  width: 900px;
  max-width: 95%;
  min-height: 550px;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Illustration Side */
.login-illustration {
  flex: 1;
  background: linear-gradient(135deg, #4b6cb7, #182848);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.illustration-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.illustration-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.illustration-img img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Form Side */
.login-form {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header .logo {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 50%;
}

.form-header h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.form-header p {
  color: #7f8c8d;
  font-size: 14px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.form-group label i {
  margin-right: 10px;
  color: #3498db;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 40px;
  cursor: pointer;
  color: #95a5a6;
}

.toggle-password:hover {
  color: #3498db;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #3498db;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-btn:hover {
  background-color: #2980b9;
}

/* Register Link */
.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #7f8c8d;
}

.register-link a {
  color: #3498db;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Error Message */
.error-message {
  background-color: #ffebee;
  color: #e74c3c;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.error-message i {
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    border-radius: 0;
  }

  .login-illustration {
    padding: 30px 20px;
  }

  .illustration-img img {
    max-width: 200px;
  }

  .login-form {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .forgot-password {
    margin-top: 5px;
  }
}