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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 1s ease;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

/* Tambahan untuk pilihan di dropdown agar lebih readable */
select option {
  background-color: #111827; /* warna gelap */
  color: #ffffff;
}

/* Placeholder */
::placeholder {
  color: #ddd;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #00d2ff, #3a47d5);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

button.outline {
  background: transparent;
  border: 2px solid #00d2ff;
}

.status-area {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #ffe;
}

.status-box {
  background: rgba(0,0,0,0.4);
  padding: 10px;
  border-radius: 12px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
  border-left: 4px solid #00d2ff;
}

.success { color: #6aff90; }
.error { color: #ff5c5c; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 500px) {
  .container {
    padding: 30px 20px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .profile-pic {
    width: 90px;
    height: 90px;
    margin: 16px auto;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  input, select {
    font-size: 14px;
    padding: 10px;
  }
}

.form-toggle {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #ddd;
}
.form-toggle span {
  color: #00d2ff;
  cursor: pointer;
  font-weight: 600;
}
.form-toggle span:hover {
  text-decoration: underline;
}
.profile-pic {
  margin: 20px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(45deg, #ff0055, #00ffd5, #ffcc00, #0055ff);
  background-size: 400% 400%;
  animation: borderSpin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #111;
}

@keyframes borderSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Tombol Logout di pojok kanan atas */
.logout-button {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #00d2ff;
  color: #00d2ff;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.logout-button:hover {
  background: #00d2ff;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px #00d2ff;
}

/* Agar tombol tidak tabrakan dengan konten */
.vip-card {
  position: relative;
  padding-top: 60px; /* memberi ruang untuk tombol logout */
}

/* Tombol dengan efek shine */
button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  transform: rotate(25deg);
  transition: 0.5s;
  z-index: 0;
}

button:hover::before {
  top: -30%;
  left: 130%;
}

/* Input dan Select lebih smooth */
input, select {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

input:focus, select:focus {
  border-color: #00d2ff;
  background: rgba(255, 255, 255, 0.25);
}

/* Card container glow */
.container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 210, 255, 0.2);
}

/* Tombol logout lebih soft */
.logout-button {
  font-size: 18px;
  padding: 8px;
  border-radius: 12px;
  color: white;
  border: none;
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  box-shadow: 0 0 12px rgba(255, 110, 196, 0.5);
}
.logout-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 110, 196, 0.8);
}

/* Tambahan animasi masuk card */
.card, #loginForm, #registerForm {
  animation: slideFade 0.7s ease both;
}

@keyframes slideFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.vip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media screen and (max-width: 600px) {
  .vip-grid {
    grid-template-columns: 1fr;
  }
}
.vip-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

@media screen and (min-width: 768px) {
  .vip-section {
    gap: 40px;
    padding: 0 10px;
  }
}
.disabled-button {
  opacity: 0.6;
  pointer-events: none;
  background: #999 !important;
  cursor: not-allowed;
}
