@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  min-height: 100vh;
}

.auth-container {
  background: rgba(26, 32, 44, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.auth-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.form-input {
  background: rgba(45, 55, 72, 0.7);
  border: 1px solid rgba(74, 85, 104, 0.5);
  color: #e2e8f0;
  transition: all 0.3s;
}

.form-input:focus {
  background: rgba(45, 55, 72, 0.9);
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.select2-container--default .select2-selection--single {
  background-color: rgba(45, 55, 72, 0.7);
  border: 1px solid rgba(74, 85, 104, 0.5);
  border-radius: 0.375rem;
  height: 42px;
  color: #e2e8f0;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #e2e8f0;
  line-height: 40px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px;
}

/* Animasi Loading */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-progress {
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Pulse animation untuk elemen lain */
.pulse-2 {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animasi untuk transisi */
.transition-all {
  transition: all 0.3s ease;
}

/* Animasi untuk fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Alternatif loading animations */
.loading-dots:after {
  content: "";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}

.loading-bounce {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-bounce div {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background-color: #4299e1;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-bounce div:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-bounce div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
