/* custom.css - login admin panel overrides */

body {
  /* Background image with dark overlay */
  background: url('/assets/image/login/admin_loginBG.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Needed for overlay */
  margin: 0;
  background-color: #001f4d; /* fallback dark blue */
}

/* Overlay to darken the background for readability */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* black with 50% opacity */
  z-index: 0;
  pointer-events: none; /* Allow clicks through */
}

/* Login card stays above overlay */
.login-card {
  background-color: rgba(233, 236, 239, 0.95); /* slightly transparent */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.form-control:focus {
  border-color: #6c757d;
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.btn-gray {
  background-color: #6c757d;
  color: #fff;
  border: none;
}

.btn-gray:hover {
  background-color: #5a6268;
}

.form-label {
  font-weight: 500;
}

.form-check-label {
  font-weight: normal;
}

.small-links {
  text-align: right;
  margin-top: 0.5rem;
}

.small-links a {
  font-size: 0.9rem;
  color: #6c757d;
  text-decoration: none;
}

.small-links a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .login-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
}

/* Container to stack logo and login card */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem; /* space between logo and card */
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1; /* above overlay */
}

/* Logo styling */
.login-logo {
  max-width: 360px;
  width: 90%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
