/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden; /* ✅ NO SCROLL */
}

/* ===== BODY LAYOUT ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;

  background:
    linear-gradient(
      rgba(0, 35, 15, 0.55),
      rgba(0, 35, 15, 0.55)
    ),
    url('../images/login.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* ===== MAIN WRAPPER ===== */
.page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* ===== CENTER CONTENT ===== */
.content-center {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 5px;

  /* ✅ MOVE LOGO + LOGIN UP */
  transform: translateY(-35px);
}

/* ===== BRAND ===== */
.pos-brand {
  text-align: center;
}

/* ===== COMPANY LOGO ===== */
.company-logo {
  width: 280px;
  max-width: 95%;

  margin-bottom: 10px;

  object-fit: contain;

  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.35))
    drop-shadow(0 0 25px rgba(34,197,94,0.35));

  animation: floatLogo 3s ease-in-out infinite;
}

/* OPTIONAL FLOAT EFFECT */
@keyframes floatLogo {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0px);
  }
}

.pos-title {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 22px;
  margin-bottom: 10px;

  text-shadow:
    0 0 8px rgba(255,255,255,0.65),
    0 0 18px rgba(255,255,255,0.25);
}

.pos-title span {
  display: block;
  font-size: 12px;
  letter-spacing: 4px;
  margin-top: 3px;
  opacity: 0.85;
}

/* ===== LOGIN ===== */
.login-container {
  width: 300px;
  padding: 1.2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

.login-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #14532d; /* ✅ GREEN */
}

/* INPUTS */
.input-group {
  margin-bottom: 15px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #14532d; /* ✅ GREEN */
}

.input-group input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #bfc9d8;
  margin-top: 5px;
}

.input-group input:focus {
  border-color: #16a34a; /* ✅ GREEN */
  outline: none;

  box-shadow: 0 0 6px rgba(22,163,74,0.4);
}

/* FULLNAME */
#fullname {
  background: #f1f5fa;
  text-align: center;
  font-weight: bold;
}

/* OPTIONS */
.checkbox-group {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 5px;
}

.checkbox-group a {
  color: #166534; /* ✅ GREEN */
  cursor: pointer;
}

/* BUTTON */
.buttons {
  margin-top: 20px;
}

.btn {
  width: 100%;
  padding: 11px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-login {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #fff;

  transition: 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
}

.btn-ok{
  background: #32CD32;
  color: white;
  padding: 5px;
  border-radius: 5px;
}

.btn-cancel {
  background: red;
  color: white;
  padding: 5px;
  border-radius: 5px;
}

/* ===== FOOTER (FIXED PROPER LAYOUT) ===== */
.footer {
  position: relative;

  background: linear-gradient(135deg, #14532d, #166534);

  width: 100%;
  height: 30px;

  display: flex;
  align-items: center;

  padding: 0 15px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;

  overflow: hidden;
}

/* LEFT (FORCE 1 LINE) */
.footer-left {
  white-space: nowrap;       /* 🔥 NO WRAP */
  overflow: hidden;
  text-overflow: ellipsis;   /* optional if screen too small */
  max-width: 40%;            /* 🔥 prevent taking too much space */
}

/* CENTER (TRUE CENTER ALWAYS) */
.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* RIGHT (MARQUEE CONTAINER FIXED WIDTH) */
.footer-right {
  position: absolute;
  right: 10px;

  width: 250px;   /* 🔥 fixed width so it doesn't push others */
  overflow: hidden;
  white-space: nowrap;
}

.footer-right marquee {
  width: 100%;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 320px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}