/* =========================
   Global
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255,255,255,0.18) 0px,
      rgba(255,255,255,0.18) 2px,
      transparent 2px,
      transparent 14px
    ),
    linear-gradient(
      135deg,
      #3b8f1f 0%,
      #6fcf3a 45%,
      #b7f34d 100%
    );
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 40px;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

/* =========================
   Logo
========================= */
.logo-img, .otp-image {
  display: block;
  margin: 0 auto 20px auto; /* Center horizontally and add bottom spacing */
  max-width: 140px;          /* Maximum width */
  width: 100%;               /* Responsive width */
  height: auto;              /* Maintain aspect ratio */
  animation: fadeIn 1s ease forwards;
}

/* =========================
   Title
========================= */
.lb-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.lb-subtitle {
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #eaffd8;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* =========================
   Login Box
========================= */
.login-box {
  background: white;
  border-radius: 10px;
  padding: 30px 35px 20px;
  width: 100%;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
}

/* =========================
   LANDBANK INPUT STYLE
========================= */
.lb-input {
  width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #7ecb2c, #4ea40f);
  border-radius: 6px;
  padding: 6px 12px;
  margin: 10px 0;
  position: relative;
}

.lb-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #fff;
  padding: 10px 40px 10px 38px;
}

.lb-input input::placeholder {
  color: #e9f6d9;
}

.lb-icon {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.lb-icon.user {
  background-image: url("icon-user.png");
}

.lb-icon.lock {
  background-image: url("icon-lock.png");
}

.lb-action {
  position: absolute;
  right: 12px;
  font-size: 13px;
  color: #f1ffe2;
  text-decoration: none;
  font-weight: 500;
}

.lb-action:hover {
  text-decoration: underline;
}

/* =========================
   Options
========================= */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.options label {
  color: #333;
}

.forgot {
  color: #24963f;
  text-decoration: none;
}

/* =========================
   Login Button
========================= */
.login-btn {
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  background: #4caf50;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  transition: background-color 0.3s ease;
  text-align: center;
}

.login-btn:hover {
  background-color: #45a049;
}

.login-btn:disabled {
  background-color: #45a049;
  cursor: not-allowed;
  opacity: 0.9;
}

/* =========================
   Account Options
========================= */
.account-options {
  margin-top: 18px;
  font-size: 14px;
}

.account-options a {
  color: #24963f;
  text-decoration: none;
}

/* =========================
   OTP Section
========================= */
.otp-wrapper {
  width: 100%;
  text-align: center;
  margin-top: -35px;
  padding-top: 35px;
  background: transparent;
  position: relative;
  z-index: 2;
}

.otp-area {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 0 0 10px 10px;
}

.otp-input {
  width: 45px;
  height: 50px;
  font-size: 20px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.2s;
  color: #333;
}

.otp-input:focus {
  border-color: #27a847;
  box-shadow: 0 0 6px rgba(39,168,71,0.4);
  outline: none;
}

/* =========================
   Services
========================= */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 35px;
  gap: 15px;
  max-width: 450px;
  width: 90%;
}

.service-item {
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
  width: 100%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.service-item img {
  width: 36px;
  height: 36px;
}

.service-item h3 {
  color: #24963f;
  margin: 0;
  font-size: 16px;
}

.service-item p {
  font-size: 13px;
  color: #555;
  margin: 2px 0 0 0;
}

/* =========================
   Popup
========================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(90,90,90,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: white;
  padding: 25px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 280px;
}

.popup-box h3 {
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
}

.popup-box p {
  color: #555;
  margin: 10px 0 20px;
}

.ok-btn {
  background-color: transparent;
  border: none;
  color: #25a04f;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.ok-btn:hover {
  text-decoration: underline;
}

/* =========================
   Animations
========================= */
@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .login-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .login-box { 
    width: 90%; 
    padding: 25px 20px;
  }

  .lb-title {
    font-size: 28px;
  }

  .lb-subtitle {
    font-size: 13px;
  }

  .services {
    width: 95%;
  }

  .service-item {
    padding: 12px 15px;
  }

  .service-item h3 {
    font-size: 15px;
  }

  .service-item p {
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  body {
    padding: 15px 5px;
  }

  .lb-title {
    font-size: 24px;
  }

  .lb-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .login-box {
    padding: 20px 15px;
  }

  .lb-input {
    padding: 5px 10px;
  }

  .lb-input input {
    font-size: 14px;
    padding: 8px 35px 8px 35px;
  }

  .lb-action {
    font-size: 12px;
  }

  .login-btn {
    padding: 12px;
    font-size: 15px;
  }

  .otp-area { gap: 6px; }

  .otp-input {
    width: 40px;
    height: 45px;
    font-size: 18px;
  }

  .otp-image, .logo-img {
    max-width: 120px;
  }

  .service-item img {
    width: 32px;
    height: 32px;
  }

  .popup-box {
    min-width: 260px;
    padding: 20px 25px;
  }
}

@media (max-width: 360px) {
  .otp-input {
    width: 35px;
    height: 40px;
    font-size: 16px;
  }

  .lb-input input {
    font-size: 13px;
  }
}
