/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}


body {
  background: linear-gradient(135deg, #141e30, #243b55);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  perspective: 1200px; 
  overflow: hidden;
}


/* styling dasar bintang*/
.shooting-star {
  position: absolute;
  top: -50px;
  left: 50%;
  height: 2px;
  background: linear-gradient(135deg, #59d0ff, rgba(0, 0, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #69dffc);
  animation: shoot 3s linear infinite;
}

/* variasi untuk setiap bintang agar posisinya sesuai */
.shooting-star:nth-child(1) {
  left: -20%;
  animation-delay: 0.5s;
  animation-duration: 3s;
}

.shooting-star:nth-child(2) {
  left: 20%;
  animation-delay: 1.2s;
  animation-duration: 2.5s;
}

.shooting-star:nth-child(3) {
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 3.2s;
}

.shooting-star:nth-child(4) {
  left: 90%;
  animation-delay: 3.5s;
  animation-duration: 2.8s;
}

/* keyframes   */
@keyframes shoot {
  0% {
    transform: translateY(0) translateX(0) rotate(-45deg);
    opacity: 1;
    width: 200px;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 50px))
      translateX(calc(-100vh - 50px)) rotate(-45deg);
    opacity: 0;
    width: 0;
  }
}

/* Glass Container  */
.auth-container {
  padding: 2.5rem;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);

  background-image: radial-gradient(
      circle at 100% 0%,
      rgba(255, 255, 255, 0.08),
      transparent 50%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);

  transform-style: preserve-3d;
  transform:  translateY(-8px) translateZ(20px);
  box-shadow: 0 50px 80px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
  box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-container:hover {
  /* Saat hover */
  transform: rotateX(0deg) rotateY(0deg) translateZ(80px);

  /* Bayangan */
  box-shadow: 0 80px 100px -20px rgba(0, 0, 0, 0.75);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Styling Logo */
.logo-img {
  width: 70px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Title */
h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Form Groups */
.form-group {
  text-align: left;
  margin-bottom: 1.2rem;
  position: relative; 
}

/* Styling Ikon di dalam Input */
.form-group i {
  position: absolute;
  left: 18px;
  top: 41px;
  color: #c1d1e8;
  opacity: 0.5;
  transition: all 0.3s ease;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #c1d1e8;
}

input {
  width: 100%;
  padding: 0.8rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: 0.3s ease;
  padding-left: 48px; 
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Ubah warna ikon saat input di-fokus */
input:focus ~ i {
  color: #38bdf8;
  opacity: 1;
}

.button {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.button-primary {
  background-color: #38bdf8;
  color: #0f172a;
}

.button-primary:hover {
  background-color: #7dd3fc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Styling untuk Button Loader */
.button .button-loader {
  display: none;
  font-size: 1.2rem;
  animation: spin 1s linear infinite;
}

.button.loading .button-loader {
  display: block;
}

.button.loading .button-text {
  display: none;
}

/* Animasi berputar */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Message */
.message {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ff8888;
  height: 1rem;
}

/* Link  */
.auth-container p a {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #7dd3fc;
  opacity: 0.9;
  transition: 0.3s;
}

.auth-container p a:hover {
  opacity: 1;
  text-decoration: underline;
}

.notification {
  /* Positioning */
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000; 

  /* Glassmorphism Style */
  background: rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  /* Text & Spacing */
  color: #e0f2fe;
  padding: 14px 22px;
  font-weight: 500;
  
  /* Animasi */
  animation: fadeInOut 4s ease-in-out forwards;
}

/* Keyframes untuk animasi notifikasi */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}