/* Elegant Form Elements - login-form-elements.css */

/* Input fields styling - compact */
.form-control {
  height: 42px;
  margin-bottom: 18px;
  padding: 0 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
  color: #2D3748;
  transition: all 0.3s;
  width: 100%;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: #213A41;
  box-shadow: 0 0 0 3px rgba(33, 58, 65, 0.1);
}

/* Form groups with improved spacing */
.form-group {
  position: relative;
  margin-bottom: 18px;
}

/* Checkbox styling */
.form-checkbox {
  position: absolute;
  opacity: 0;
}

.form-group label {
  display: inline-block;
  cursor: pointer;
  position: relative;
  padding-left: 24px;
  margin-right: 15px;
  font-size: 13px;
  line-height: 18px;
  color: #4A5568;
  font-weight: 400;
}

.form-group label:before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: #f8f9fa;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.form-checkbox:checked + label:before {
  background: #213A41;
  border-color: #213A41;
}

.form-checkbox:checked + label:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Button styling */
.btn {
  height: 42px;
  width: 100%;
  padding: 0 15px;
  background: #213A41;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(33, 58, 65, 0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

/* Exception for "Lupa Kata Sandi" link that has btn class */
a.btn[href*="lupa_sandi"] {
  display: inline-block;
  float: right;
  background: transparent;
  border: none;
  box-shadow: none;
  height: auto;
  width: auto;
  padding: 0;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #213A41;
  text-transform: none;
  letter-spacing: normal;
}

.btn:hover {
  background: #2C4F5A;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(33, 58, 65, 0.25);
}

.btn:focus {
  outline: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(33, 58, 65, 0.2);
}

/* For the "Forgot Password" link */
.form-group a[role="button"] {
  display: inline-block;
  float: right;
  color: #213A41;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  /* Reset button styling for this specific link */
  background: transparent;
  border: none;
  box-shadow: none;
  height: auto;
  width: auto;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
}

.form-group a[role="button"]:hover {
  color: #2C4F5A;
  text-decoration: underline;
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Divider styling */
hr {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 18px 0;
  position: relative;
}

/* Form validation styling */
.form-control.error {
  border-color: #F56565;
  box-shadow: 0 0 0 2px rgba(245, 101, 101, 0.1);
}

label.error {
  color: #F56565;
  font-size: 12px;
  margin-top: -15px;
  margin-bottom: 10px;
  display: block;
}

/* Animation for form submission */
.login-form.submitting .btn {
  pointer-events: none;
  opacity: 0.8;
}

/* reCAPTCHA container styling */
#recaptcha {
  margin-bottom: 18px;
  transform: scale(0.9);
  transform-origin: left top;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .form-control {
    background: #2D3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
  }
  
  .form-control:focus {
    background: #1A202C;
    border-color: #4A5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.3);
  }
  
  .form-group label {
    color: #CBD5E0;
  }
  
  .form-group label:before {
    background: #2D3748;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .form-group a[role="button"] {
    color: #90CDF4;
  }
  
  .form-group a[role="button"]:hover {
    color: #63B3ED;
  }
  
  a.btn[href*="lupa_sandi"] {
    color: #90CDF4;
  }
  
  hr {
    background: rgba(255, 255, 255, 0.05);
  }
}