:root {
  --primary: #0a1118;
  --accent: #ad1457;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #050a0f;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Mencegah geser kanan-kiri */
}

/* Background dengan gambar blur (Gunakan cover image kamu jika mau) */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(10, 17, 24, 0.9), rgba(173, 20, 87, 0.3)), url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: 1;
  transform: scale(1.1); /* Menghilangkan garis putih di pinggir saat blur */
}

.login-container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-header .icon-box {
  width: 70px;
  height: 70px;
  background: var(--accent);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 30px;
  color: white;
  box-shadow: 0 10px 20px rgba(173, 20, 87, 0.3);
}

.login-header h2 {
  color: white;
  letter-spacing: 2px;
  font-size: 24px;
  margin-bottom: 5px;
}

.login-header h2 span {
  color: var(--accent);
}

.login-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-bottom: 30px;
}

/* Input Styling */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i:not(.toggle-password) {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
}

.input-group input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.input-group input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

/* Error Message */
.error-msg {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(173, 20, 87, 0.2);
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(173, 20, 87, 0.4);
}

.login-footer {
  margin-top: 30px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }
}
