/* RESET */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  touch-action: manipulation;
}

body {
  margin: 0;
  height: 100vh;
  touch-action: none;
  overscroll-behavior: none;
  overflow: hidden;
  background: linear-gradient(135deg, #4b5cff, #7b3fe4);
}

/* BACKGROUND IMAGE */
.bg {
  position: fixed;
  inset: 0;
  background-image: url(/img/bg.png);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* CONTAINER */
.login-container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  bottom: 15%;
}

/* CARD */
.card {
  width: 100%;
  max-width: 420px; /* ukuran desktop */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  color: #fff;
  text-align: center;
}

/* TITLE */
.title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: #000;
  font-weight: 700;
  opacity: .9;
  margin-bottom: 20px;
}

/* INPUT */
.input-group {
  margin-bottom: 18px;
}

.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

/* BUTTON */
.btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(45deg, #ffd76f, #ffb800);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,200,0,.4);
}

/* LINKS */
.links {
  margin-top: 16px;
  font-size: 13px;
}

.links a {
  color: #ffe27a;
  text-decoration: none;
}

.links span {
  margin: 0 6px;
}

/* MESSAGE */
.message {
  margin-top: 12px;
  font-size: 14px;
  display: none;
}

.message.error {
  color: #ff6b6b;
}

.message.success {
  color: #7dff9b;
}

/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
  .card {
    padding: 24px 18px;
  }

  .title {
    font-size: 26px;
  }

  .subtitle {
    font-size: 13px;
  }
}
