* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

body {
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
}

/* Header */
.top-bar {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 10;
}

.login-btn {
  background-color: #588c8c;
  color: white;
  padding: 8px 18px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Overlay */
.overlay {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 5%;
}

/* Card */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInFromLeft 1s ease-out forwards;
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo {
  font-size: 40px;
  margin-bottom: 16px;
  color: #588c8c;
}

.logo img {
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #333;
}

.subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
}

.btn {
  background-color: #588c8c;
  color: #fff;
  padding: 14px 28px;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 16px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-items {
  display: flex;
  gap: 20px;
}

.footer-logo {
  font-weight: bold;
  font-size: 14px;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  body {
    background-position: top;
    background-attachment: fixed;
  }

  .overlay {
    justify-content: center;
    align-items: baseline; /* Center vertically */
    padding: 0 3%;
	margin-top: 10%;
  }

  .card {
    padding: 20px 16px;
    max-width: 100%;
    animation: slideInFromBottom 0.8s ease-out forwards;
    transform: translateY(100%);
  }

  @keyframes slideInFromBottom {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .logo {
    font-size: 28px;
  }

  .logo img {
    max-width: 80%;
    height: auto;
  }

  h1 {
    font-size: 20px;
  }

  .subtitle {
    font-size: 14px;
    line-height: 1.4;
  }

  .btn {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
  }

  .top-bar {
    position: relative;
    justify-content: center;
    padding: 12px;
  }

  .login-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px;
    font-size: 12px;
  }

  .footer-items {
    flex-direction: column;
    gap: 6px;
  }

  .footer-logo {
    font-size: 12px;
  }
}

/* Extra small devices (phones < 480px) */
@media (max-width: 480px) {
  .card {
    padding: 16px 12px;
  }

  h1 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 13px;
  }

  .btn {
    font-size: 15px;
    padding: 10px 16px;
  }
}
