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

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
}

/* Overall Page */
.login-page {
  width: 100%;
  height: 100vh;
  background-color: #e1f2e1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Container */
.login-container {
  display: flex;
  width: 100%;
  height: 90%;
  border-radius: 20px;
  overflow: hidden;
  padding: 20px;
}

/* Left Box */
.login-box {
  width: 36%;
  background-color: #e1f2e1;
  backdrop-filter: blur(12px);
  padding: 50px 40px;
  border-radius: 20px;
  border: 1px solid #074305;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 1%;
  margin-left: 2%;
}

/* Headings */
.login-box h1 {
  font-size: 40px;
  color: #074305;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  color: #355b35;
  margin-bottom: 30px;
  line-height: 1.5;
}

.brand {
  font-weight: bold;
  color: #074305;
}

/* Form and Labels */
.login-form {
  display: flex;
  flex-direction: column;
}

.input-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.input-group {
  position: relative; /* needed for absolute positioning inside */
}

.input-group label {
  position: absolute;
  top: -10px; /* adjust to control vertical position over input */
  left: 14px; /* aligns with input padding */
  background-color: #e1f2e1;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 15px;
  color: #074305;
  font-weight: 600;
  display: inline-block;
  z-index: 1;
}



.input-group input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  border: 1px solid #074305;
  border-radius: 12px;
  outline: none;
  background-color: #e1f2e1;
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  cursor: pointer;
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-bottom: 30px;
}

.forgot-password a {
  font-size: 15px;
  color: #074305;
  text-decoration: none;
  font-weight: 600;
}

/* Button */
.login-btn {
  position: relative;
  background-color: #074305;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: var(--y, 0);
  left: var(--x, 0);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease;
  border-radius: 50%;
  z-index: 1;
}

.login-btn:hover::before {
  width: 120px;
  height: 120px;
}


/* Right Panel */
.right-panel {
  width: 60%;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.right-panel img {
  width: 100%;
  max-width: 500px;
  height: 500px;
  
}

.slogan {
  text-align: center;
  font-size: 20px;
  color: #074305;
  max-width: 600px;
  line-height: 1.4;
}

/*JS STYLE*/


/* Slide-in image animation */
.slide-in-image {
  animation: slideIn 1s ease-out forwards;
  opacity: 0;
}

@keyframes slideIn {
  0% {
    transform: translateX(80px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.error-contaiener {
  padding: 10px 0;
}

.error-message {
  color: red; 
  font-size: .875rem; 
  text-align: center;
}