@import url("admin_style.css");
body {
  background-image: url("/pictures/bansud-building.jpg");
  background-color: #1e3a1f;
  font-family: sans-serif;
  background-position: center bottom;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container for centering the form */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}

/* Login form styling */
.login-form {
  background: rgba(255, 255, 255, 0.6); /* semi-transparent white */
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Title */
.login-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
}

/* Form group spacing */
.form-group {
  margin-bottom: 1.25rem;
}

/* Labels */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

/* Inputs */
.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #2f855a;
  box-shadow: 0 0 6px rgba(47, 133, 90, 0.6);
}

/* Error message */
.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* Button */
.btn {
  display: block;
  width: 100%;
  padding: 15px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2f855a, #276749);
  color: white;
  transform: translateY(-2px);
}

/* Disabled button and inputs when locked out */
form[style*="opacity: 0.5"] input,
form[style*="opacity: 0.5"] button {
  cursor: not-allowed;
}

/* Responsive tweaks */
@media (max-width: 450px) {
  .login-form {
    padding: 1.5rem 1rem;
    max-width: 90%;
  }
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px !important;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.2s ease;
    user-select: none;
}

.password-toggle-icon:hover {
    transform: translateY(-50%) scale(1.1);
}

.eye-icon {
    width: 22px;
    height: 22px;
    display: block;
}
