/* Auth Modal Styles */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 50px 40px;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease;
  position: relative;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-content h2 {
  color: #86b097;
  margin-bottom: 15px;
  font-size: 28px;
  text-align: center;
  font-weight: 700;
}

.auth-modal-content h3 {
  color: #2f5d3f;
  margin-bottom: 10px;
  font-size: 24px;
  text-align: center;
  font-weight: 700;
}

.auth-modal-content p {
  color: #79838b;
  margin-bottom: 35px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

.modal-close {
  color: #a39baa;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  line-height: 20px;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
  color: #86b097;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: #ffffff;
  color: #3a4750;
  border: 2px solid #e8ebe8;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.google-btn:hover {
  background-color: #f8fbf8;
  border-color: #86b097;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(134, 176, 151, 0.2);
}

.google-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(134, 176, 151, 0.15);
}

.auth-status {
  margin-top: 25px;
  text-align: center;
  min-height: 30px;
}

.auth-status p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* Loading Modal */
.loading-content {
  text-align: center;
  padding: 30px 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #86b097;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Error Modal */
.error-content {
  text-align: center;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-content .btn {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #2f5d3f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.error-content .btn:hover {
  background: #1e3d2a;
  transform: translateY(-2px);
}

/* Download Section */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 35px;
}

.download-btn {
  background: linear-gradient(135deg, #86b097, #9ac4ab);
  color: #03221a;
  border: none;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(134, 176, 151, 0.25);
}

.download-btn:hover {
  background: linear-gradient(135deg, #9ac4ab, #aed4bc);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(134, 176, 151, 0.35);
}

.download-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(134, 176, 151, 0.25);
}

/* Responsive Design */
@media (max-width: 600px) {
  .auth-modal-content {
    width: 95%;
    padding: 40px 25px;
    margin: 20% auto;
  }
  
  .auth-modal-content h2 {
    font-size: 24px;
  }
  
  .auth-modal-content h3 {
    font-size: 20px;
  }
  
  .google-btn {
    font-size: 15px;
    padding: 14px 22px;
  }
  
  .download-btn {
    font-size: 15px;
    padding: 15px 26px;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    font-size: 28px;
  }
}