* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  display: flex;
  background-color: #fff;
}

/* Left Side - Visual Area */
.login-visual {
  flex: 1;
  background-color: #fff; /* White background */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background pattern placeholder */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  /* Placeholder for background pattern image */
  /* background-image: url('path/to/pattern.png'); */
  background-size: cover;
  z-index: 1;
}

.logo-rect {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 600px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
}

/* Right Side - Form Area */
.login-form-container {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  max-width: 700px;
}

.welcome-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.sub-welcome {
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #008830;
}

.help-wrapper {
  margin-bottom: 20px;
}

.help-link {
  background: linear-gradient(to right, #008830, #f18e00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  font-size: 14px;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background-image: linear-gradient(to right, #008830, #f18e00);
  background-color: #008830; /* Fallback */
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 30px;
}

.login-btn:hover {
  opacity: 0.9;
}

.footer-text {
  font-size: 14px;
  color: #666;
}

.footer-text a {
  background: linear-gradient(to right, #008830, #f18e00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .login-visual {
    display: none;
  }

  .login-form-container {
    padding: 40px 20px;
    max-width: 100%;
  }
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-btn {
  width: auto;
  padding: 10px 30px;
  margin-bottom: 0;
}

.password-toggle-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
  padding: 0;
  user-select: none;
}
