/* Custom CSS untuk halaman login SAMIT Auth System */

.kandang {
  border-radius: 15px;
  padding: 40px 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.kandang > * {
  position: relative;
  z-index: 1;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.wrap {
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-wrap {
  border-radius: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

.btn-outline-secondary {
  border: 2px solid #667eea !important;
  color: #667eea !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.btn-outline-secondary:hover {
  background: #667eea !important;
  color: white !important;
  transform: translateY(-2px);
}

.form-control:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.form-control {
  border-radius: 10px !important;
  border: 1px solid #e1e5e9 !important;
  transition: all 0.3s ease !important;
}

.field-icon {
  color: #667eea !important;
}

/* Modal styling */
.modal-content {
  border-radius: 15px !important;
  border: none !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.modal-header {
  border-bottom: 1px solid #f1f3f4 !important;
  border-radius: 15px 15px 0 0 !important;
}

.modal-footer {
  border-top: 1px solid #f1f3f4 !important;
  border-radius: 0 0 15px 15px !important;
}

/* Alert styling */
.alert {
  border-radius: 10px !important;
  border: none !important;
}

.alert-danger {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
  color: white !important;
}

.alert-success {
  background: linear-gradient(135deg, #51cf66, #40c057) !important;
  color: white !important;
}

/* Loading animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Custom styling untuk link */
a {
  transition: all 0.3s ease !important;
}

a:hover {
  text-decoration: none !important;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .kandang {
    padding: 30px 15px;
    margin-bottom: 20px;
  }

  .wrap {
    margin: 0 10px;
  }
}

/* Background pattern untuk body */
body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* Icon animations */
.fa-stack {
  transition: all 0.3s ease;
}

.fa-stack:hover {
  transform: rotate(360deg);
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
