/* css signin */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 300px);
  padding: 40px 0;
}

.login-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
  font-size: 24px;
}

.login-form > p {
  text-align: center;
  margin-bottom: 25px;
  color: #666;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #42b549;
  outline: none;
}

.error-message {
  color: #ff3d00;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  width: auto;
  margin-right: 8px;
}

.remember-me label {
  margin-bottom: 0;
  font-weight: normal;
}

.forgot-password {
  color: #42b549;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #42b549;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 20px;
}

.btn-login:hover {
  background: #3aa041;
}

.register-link {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
}

.register-link a {
  color: #42b549;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

.social-login {
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.social-login p {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.social-btn i {
  margin-right: 8px;
  font-size: 16px;
}

.social-btn.google-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.social-btn.facebook-btn {
  background: #3b5998;
  color: white;
  border-color: #3b5998;
}

.social-btn.facebook-btn:hover {
  background: #344e86;
  border-color: #344e86;
}

/* Password input container */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  padding-right: 40px; /* Space for the eye icon */
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  font-size: 14px;
}

.toggle-password:hover {
  color: #42b549;
}

/* Styling untuk notifikasi */
.notification {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  animation: slideIn 0.5s ease;
}

.notification.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification i {
  font-size: 24px;
  margin-right: 15px;
}

.notification-content h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
}

.notification-content p, .notification-content ul {
  margin: 0;
  font-size: 14px;
}

.notification-content ul {
  padding-left: 20px;
}

.close-notification {
  margin-left: auto;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-form {
    padding: 20px;
  }
  
  .login-container {
    padding: 20px 0;
  }
  
  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  /* Pastikan header mobile tidak ditampilkan di desktop */
  #mobileHeader {
    display: none;
  }
}

/* Pastikan header desktop tidak ditampilkan di mobile */
@media (max-width: 768px) {
  #mainHeader {
    display: none;
  }
  
  #mobileHeader {
    display: block;
  }
  
  /* Perbaikan tambahan untuk mobile header */
  #mobileHeader .top-header {
    padding: 10px 0;
  }
  
  #mobileHeader .search-bar {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 100%;
  }
  
  #mobileHeader .search-bar input {
    font-size: 16px; /* Membesarkan ukuran font untuk mobile */
  }
}

/* Mobile Header Styles */
.mobile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 0px;
}

.mobile-header-top .logo {
  flex: 1;
  text-align: center;
}

.mobile-header-top .logo h1 {
  margin: 0;
  font-size: 20px;
}

.mobile-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media(max-width: 768px){
  .mobile-actions{
    margin-left: 0px;
  }
}

.mobile-actions a {
  color: #42b549;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.mobile-actions a:hover {
  background-color: rgba(2, 255, 19, 0.1);
}

.mobile-actions a i {
  font-size: 16px;
}

.burger-menu {
  background: none;
  border: none;
  font-size: 22px;
  color: #42b549;
  cursor: pointer;
  padding: 5px;
}

#mobileMenu {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-mode #mobileMenu {
  background: #2d2d2d;
}

#mobileMenu a {
  padding: 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

body.dark-mode #mobileMenu a {
  color: #e0e0e0;
  border-bottom: 1px solid #3d3d3d;
}

#mobileMenu a:hover {
  background: #42b549;
  color: #ffffff;
}

body.dark-mode #mobileMenu a:hover {
  background: #3d3d3d;
  color: #ffffff;
}

/* Mobile Filter Button */
.mobile-filter-btn {
  display: none;
  text-decoration: none;
}

@media (max-width: 768px) {
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #42b549;
    padding: 2px 10px 11px 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #e3e3e3 transparent;
    border-radius: 5px;
    margin-left: 10px;
    background: none;
    cursor: pointer;
  }
  
  .mobile-filter-btn:hover {
    background: #e3e3e3;
  }
  
  .mobile-filter-btn i {
    font-size: 16px;
    margin-top: 10px;
    
  }
  
  /* Adjust search bar for mobile with filter button */
  #mobileHeader .search-bar {
    display: flex;
    width: 100%;
  }
  
  #mobileHeader .search-bar input {
    flex: 1;
    margin-right: 0;
    border-radius: 8px 0 0 8px;    
  }
  
  #mobileHeader .search-bar button {
    border-radius: 0 8px 8px 0;
    margin-right: 0;
  }
}

/* Style untuk toggle bahasa di mobile */
.mobile-actions .language-toggle {
  color: #42b549;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.mobile-actions .language-toggle:hover {
  background-color: rgba(2, 255, 19, 0.1);
}

.mobile-actions .language-toggle .language-text {
  margin-right: 5px;
  font-weight: bold;
  font-size: 12px;
}

.mobile-actions .language-toggle i {
  font-size: 14px;
  line-height: 0;
  margin-left: 2px;
  position: relative;
  top: 0;
}

/* Dark Mode Styles for Login */
body.dark-mode .login-form {
  background: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .login-form h2 {
  color: #e0e0e0;
}

body.dark-mode .login-form > p {
  color: #b0b0b0;
}

body.dark-mode .form-group label {
  color: #e0e0e0;
}

body.dark-mode .form-group input {
  background: #3d3d3d;
  border-color: #4d4d4d;
  color: #e0e0e0;
}

body.dark-mode .form-group input:focus {
  border-color: #42b549;
}

body.dark-mode .register-link {
  color: #b0b0b0;
}

body.dark-mode .register-link a {
  color: #42b549;
}

body.dark-mode .forgot-password {
  color: #42b549;
}

body.dark-mode .remember-me label {
  color: #e0e0e0;
}

body.dark-mode .social-login p {
  color: #b0b0b0;
}

body.dark-mode .social-btn {
  background: #3d3d3d;
  border-color: #4d4d4d;
  color: #e0e0e0;
}

body.dark-mode .social-btn.google-btn:hover {
  background: #4d4d4d;
  border-color: #5d5d5d;
}

body.dark-mode .social-login {
  border-top-color: #4d4d4d;
}

/* Dark mode styles for password toggle */
body.dark-mode .toggle-password {
  color: #b0b0b0;
}

body.dark-mode .toggle-password:hover {
  color: #42b549;
}

/* Floating Image & Bubble Dark Mode */
body.dark-mode .bubble {
  background: #2d2d2d;
  color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.dark-mode .bubble::after {
  border-color: #2d2d2d transparent transparent;
}

/* ================================Animasi Burger Menu untuk signin===================================== */
.burger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 35px;
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-menu span {
  display: block;
  width: 22px;
  height: 3px;
  background-color: #42b549;
  border-radius: 3px;
  margin: 3px 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  position: relative;
}

/* Animasi untuk menu aktif - Berubah menjadi X */
.burger-menu.active {
  transform: rotate(180deg);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: #42b549;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: #42b549;
}

/* Overlay untuk background gelap */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animasi untuk menu mobile */
#mobileMenu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
  padding-top: 60px;
}

#mobileMenu.active {
  left: 0;
  transform: translateX(0);
}

/* Header menu mobile */
.menu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 60px;
  background: #42b549;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#mobileMenu.active ~ .menu-header {
  transform: translateX(0);
}

/* Item menu mobile */
#mobileMenu a {
  padding: 18px 25px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  display: flex;
  align-items: center;
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.4s ease;
}

#mobileMenu a i {
  margin-right: 15px;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

#mobileMenu.active a {
  transform: translateX(0);
  opacity: 1;
}

/* Animasi berurutan untuk item menu */
#mobileMenu.active a:nth-child(1) {
  transition-delay: 0.1s;
}

#mobileMenu.active a:nth-child(2) {
  transition-delay: 0.15s;
}

#mobileMenu.active a:nth-child(3) {
  transition-delay: 0.2s;
}

#mobileMenu.active a:nth-child(4) {
  transition-delay: 0.25s;
}

#mobileMenu.active a:nth-child(5) {
  transition-delay: 0.3s;
}

/* Efek hover pada item menu */
#mobileMenu a:hover {
  background-color: #f8f9fa;
  padding-left: 30px;
  color: #42b549;
}

/* Dark mode styles untuk animasi */
body.dark-mode #mobileMenu {
  background: #2d2d2d;
}

body.dark-mode #mobileMenu a {
  color: #e0e0e0;
  border-bottom: 1px solid #3d3d3d;
}

body.dark-mode #mobileMenu a:hover {
  background-color: #3d3d3d;
  color: #42b549;
}

body.dark-mode .menu-header {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .burger-menu span {
  background-color: #42b549;
}

body.dark-mode .burger-menu.active span {
  background-color: #e0e0e0;
}

/* ==============================Akhir Animasi Burger Menu untuk signin================================ */